Skip to content

Commit

Permalink
Add production webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
olekon committed Oct 2, 2021
1 parent 0b44e0b commit ad27975
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/tmp
~*
*.zip
*.LICENSE.txt
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"ganache": "call .\\src\\stubs\\smarts\\rung.cmd",
"migrate": "cd src\\stubs\\smarts\\ && truffle migrate --reset",
"devnode": "concurrently \"npm run ganache\" \"npm run migrate\"",
"build": "webpack --mode=production"
"build": "webpack --config webpack.prod.js"
},
"dependencies": {
"@ant-design/compatible": "^1.0.8",
Expand Down
10 changes: 10 additions & 0 deletions webpack.prod.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const devConfig = require('./webpack.config');

module.exports = {
...devConfig,
mode: 'production',

performance: {
hints: false,
},
};

0 comments on commit ad27975

Please sign in to comment.