Skip to content

Instantly share code, notes, and snippets.

@torounit
Last active October 14, 2018 16:07
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save torounit/e6e4dd0cf39cda5187b4b7d7a78e3865 to your computer and use it in GitHub Desktop.
Save torounit/e6e4dd0cf39cda5187b4b7d7a78e3865 to your computer and use it in GitHub Desktop.
npm scripts
var browserSync = require("browser-sync");
browserSync({
proxy: 'localhost:9292',
files: [
"./css/**/*",
"./js/**/*",
"./images/**/*",
"./fonts/**/*",
"./**/*.php",
]
});
{
"private": true,
"scripts": {
"build": "npm run scss && npm run postcss",
"scss": "node-sass ./scss/style.scss -o ./css/",
"postcss": "postcss ./css/style.css --use autoprefixer -o ./css/style.css",
"watch": "nodemon -e scss -x \"npm run build\"",
"bs": "node ./browserSync.js",
"start": "npm run watch & npm run bs"
},
"devDependencies": {
"autoprefixer": "^8.6.4",
"browser-sync": "^2.24.5",
"node-sass": "^4.9.0",
"nodemon": "^1.17.5",
"postcss-cli": "^5.0.1"
},
"browserslist": [
"last 2 versions",
"ie 11"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment