npm - build script in package.json using webpack with --config flag as -


in package.json i'm trying use webpack in script keeps failing.

  "scripts": {     "start": "node server.js",     "test": "mocha 'src/**/test*.coffee' --watch --compilers coffee:coffee-script/register",     "build": "webpack --config webpack.dist.config.js"   }, 

the scripts start , test works expected when running npm build in terminal i'm getting nothing:

➜  client git:(master) ✗ npm build ➜  client git:(master) ✗  

when running command manually, things happen:

➜  client git:(master) ✗ webpack --config webpack.dist.config.js hash: 9274a04acd39605afc25 version: webpack 1.9.10 time: 5206ms     asset     size  chunks             chunk names bundle.js  5.23 mb       0  [emitted]  main    [0] multi main 28 bytes {0} [built]  [349] ../config.js 181 bytes {0} [built]     + 413 hidden modules ➜  client git:(master) ✗  

have miss understod how npm scripts suppose work?

use: npm run build

reason: npm start & npm test shortcuts npm run start & npm run test, other npm tasks, have specify "run"


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -