A quick example of using NPM scripts instead of, say, Gulp. Google "NPM scripts as a build tool" or something to read more.
- Autoprefixes, CSS Vars, reduced-Calc, Imports, etc with
postcss - Compress CSS with
cssnano - Lint CSS with
cssnano - Lint JS with
XO(ESlint) - Minify SVG with
svgo - Minify JS with
uglify-js - Minify images with
imagemin - …and automagically serve and refresh all this with
browser-sync
- create a
./static/src/js/**/*.js,./static/src/css/**/*.css - run
npm install - try:
npm run lint:css,npm run build:css,npm run build,npm run serve, etc. (view Package.json)