Jekyll build process example using npm scripts to build assets/js/main.min.js
. The scripts copies vendor sass partials to _sass/vendor/
directory and vendor javascripts to assets/js/vendor/
directory, concatenates and minifies js files and watches for changes.
- Install Node.js
- Install all of the dependencies by running
npm install
in theme root directory, this will install all SCSS and JS dependencies, compress and concatenate JS scripts intomain.min.js
. - Availabele commands:
npm install
npm run watch