Permalink
Browse files

Move webpack stats to dedicated command (#1023)

  • Loading branch information...
1 parent 175e4c4 commit 736c3c3d52b5fb095d0b43cfbf3fd84302bc92e3 @stefk stefk committed with Elorfin Dec 7, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 package.json
View
@@ -8,7 +8,8 @@
"old-themes": "node vendor/claroline/distribution/main/core/Resources/server/scripts/build-old-themes",
"uglify": "for f in web/dist/*.js; do echo \"Uglifying ${f}...\" && ./node_modules/.bin/uglifyjs $f -o $f; done",
"dll": "node_modules/webpack/bin/webpack.js --config=vendor/claroline/distribution/webpack.dll.js --progress --colors --display-error-details",
- "webpack": "export NODE_ENV=production && rm -rf web/dist/* && npm run dll && node_modules/webpack/bin/webpack.js --json --config=vendor/claroline/distribution/webpack.prod.js --progress --colors --display-error-details > webpack-stats.json && npm run uglify",
+ "webpack": "export NODE_ENV=production && rm -rf web/dist/* && npm run dll && node_modules/webpack/bin/webpack.js --config=vendor/claroline/distribution/webpack.prod.js --progress --colors --display-error-details && npm run uglify",
+ "webpack:stats": "export NODE_ENV=production && rm -rf web/dist/* && npm run dll && node_modules/webpack/bin/webpack.js --json --config=vendor/claroline/distribution/webpack.prod.js --progress --colors --display-error-details > webpack-stats.json && npm run uglify",
"watch": "npm run dll && node_modules/webpack-dev-server/bin/webpack-dev-server.js --hot --config=vendor/claroline/distribution/webpack.dev.js --inline --content-base web --claro-tgt=watch --display-error-details",
"karma": "node_modules/.bin/karma start vendor/claroline/distribution/karma.conf.js",
"mocha": "./node_modules/mocha/bin/mocha vendor/claroline/distribution/main/core/Resources/server/**/*.test.js",

0 comments on commit 736c3c3

Please sign in to comment.