Last active
February 5, 2018 08:49
-
-
Save MSerj/886f5eacc685534fb321568d8a0f916f to your computer and use it in GitHub Desktop.
npm scripts examples
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": { | |
"sass": "node-sass --source-map=true -w ./src/scss/style.scss -o ./dist/server/public/css/ --style compressed", | |
"prefix": "postcss -u autoprefixer --autoprefixer.browsers 'ie 10, android 4, opera 12.1, > 2%' -r ./dist/server/public/css/style.css", | |
"babel": "babel ./src/ -d ./dist/ -w", | |
"webpack": "webpack -w", | |
"server": "nodemon ./dist/server/server.js", | |
"sync": "browser-sync start --directory --server --files '*.css, *.js, *.html'", | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment