Skip to content

Commit

Permalink
chore: updated script for watch and build (#19)
Browse files Browse the repository at this point in the history
using `--mode` option
  • Loading branch information
balaji-sivasakthi authored Feb 6, 2024
1 parent 5b2245a commit b3c5b26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"scripts": {
"prettier": "prettier ./src --write",
"test": "npx jest",
"build": "webpack",
"watch": "webpack --watch"
"build": "webpack --mode=production",
"watch": "webpack --watch --mode=development"
},
"repository": {
"type": "git",
Expand Down
1 change: 0 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const path = require('path');

module.exports = {
entry: './src/index.ts',
mode: "development",
module: {
rules: [
{
Expand Down

0 comments on commit b3c5b26

Please sign in to comment.