SASS-files saved in assets/css/src
will be merged and converted to CSS and put into assets/css/dist
.
Javascript-files saved in assets/js/src
will be merged and minified and put into assets/js/dist
.
Download and install NodeJS.
npm install --save-dev gulp gulp-sass gulp-autoprefixer gulp-concat gulp-uglify-es gulp-csso gulp-rename
npm install --save-dev gulp gulp-sass gulp-autoprefixer gulp-concat gulp-csso gulp-rename
npm install --save-dev gulp gulp-concat gulp-uglify-es gulp-rename
Place your gulpfile.js
in your project, often at the root.
Run gulp
to watch for file changes.
When saving files in assets/css/src
or assets/js/src
, they should be converted and placed into the dist
folders.
Donate to DevoneraAB if you want.
MIT