Skip to content

Commit

Permalink
chore(webpack): Print webpack mode (production/development) to console (
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Mar 21, 2018
1 parent 5c3b1b9 commit 3c2ad4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"scripts": {
"clean": "rimraf .awcache .cache-loader build node_modules transpiled",
"build": "webpack --bail --mode=production",
"build": "webpack --bail --progress --mode=production",
"eslint": "eslint -c .eslintrc app/scripts/modules",
"start": "sh ./start.sh",
"start-dev-server": "webpack-dev-server --progress --mode=development",
Expand Down
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ function configure(env, webpackOpts) {
const WEBPACK_MODE = (webpackOpts && webpackOpts.mode) || 'development';
const IS_PRODUCTION = WEBPACK_MODE === 'production';

console.log("Webpack mode: " + WEBPACK_MODE);

const config = {
context: __dirname,
mode: WEBPACK_MODE,
Expand Down

0 comments on commit 3c2ad4a

Please sign in to comment.