Skip to content

Instantly share code, notes, and snippets.

@MSerj
Last active February 5, 2018 08:49
Show Gist options
  • Save MSerj/886f5eacc685534fb321568d8a0f916f to your computer and use it in GitHub Desktop.
Save MSerj/886f5eacc685534fb321568d8a0f916f to your computer and use it in GitHub Desktop.
npm scripts examples
{
"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