Skip to content

Instantly share code, notes, and snippets.

View wingtonrbrito's full-sized avatar

Wington Brito wingtonrbrito

View GitHub Profile
@wingtonrbrito
wingtonrbrito / package.json
Created July 26, 2018 01:32
script example to run webpack on prod and dev
"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"
},