Created
July 26, 2018 01:32
-
-
Save gitexec/5ddc0db9ea44044e02c6d906c8b7459d to your computer and use it in GitHub Desktop.
script example to run webpack on prod and dev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"build": "npm run clean && npm run compile", | |
"compile": "NODE_ENV=production webpack --config ./webpack.config.js --progress", | |
"clean": "rm -rf ./build/bundle*.js", | |
"sass-compile": "node-sass dist/scss -o dist/css", | |
"webpack": "webpack-dev-server --config ./webpack.dev.config.js --watch --open", | |
"start": "yarn run sass-compile && concurrently --kill-others \"yarn run sass-compile --watch\" \"yarn run webpack\"", | |
"test": "eslint **/*.js" | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment