Last active
May 16, 2018 09:39
-
-
Save escapedcat/5ff41e4b2b88e11d4f95 to your computer and use it in GitHub Desktop.
npm scripts including node-sass and autoprefixer
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
{ | |
"name": "foo", | |
"version": "1.0.0", | |
"description": "foo project", | |
"main": "index.js", | |
"scripts": { | |
"start": "npm run serve | npm run watch-css", | |
"serve": "./node_modules/.bin/http-server -p 8080", | |
"build-css": "./node_modules/node-sass/bin/node-sass app/sass/style.scss -o app/css/ && ./node_modules/postcss-cli/bin/postcss --use autoprefixer app/css/style.css -d app/css/", | |
"watch-css": "nodemon -e scss -x 'npm run build-css'" | |
}, | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"autoprefixer": "6.1.2", | |
"node-sass": "3.4.2", | |
"postcss-cli": "2.3.2" | |
}, | |
"devDependencies": { | |
"http-server": "^0.8.5" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@aronhoyer I got working scripts: