-
-
Save gld1982ltd/9b7d86fb322b0c5ec643 to your computer and use it in GitHub Desktop.
npm boilerplate package for web projects
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": "project", | |
"private": true, | |
"scripts": { | |
"build:css": "postcss --use postcss-import --use autoprefixer --autoprefixer.browsers 'last 3 versions' --use cssnano --use postcss-cssnext --output assets/css/full.css assets/css/src/index.css", | |
"watch:css": "postcss --watch --use postcss-import --use autoprefixer --autoprefixer.browsers 'last 3 versions' --use cssnano --use postcss-cssnext --output assets/css/full.css assets/css/src/index.css", | |
"build:js": "uglifyjs assets/js/src/init.js --no-mangle --compress sequences=true,dead_code=true,conditionals=true,booleans=true,unused=true,if_return=true,join_vars=true,drop_console=true --output assets/js/full.js", | |
"watch:js": "watch 'uglifyjs assets/js/src/init.js --no-mangle --source-map full.js.map --output assets/js/full.js' assets/js/src" | |
}, | |
"devDependencies": { | |
"autoprefixer": "^6.2.3", | |
"cssnano": "^3.4.0", | |
"postcss": "^5.0.14", | |
"postcss-cli": "^2.3.3", | |
"postcss-cssnext": "^2.4.0", | |
"postcss-import": "^7.1.3", | |
"uglifyjs": "^2.4.10", | |
"watch": "^0.17.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment