No need for Gulp, Grunt, or Webpack here... this is a collection of packages that build a website using npm scripts
instead. Thanks to Damon Bauer for his post on CSS Tricks and his NPM Build Boilerplate for which this is based.
Clone
git clone https://github.com/gregrickaby/npm-scripts-boilerplate.git
Install
npm i
Set your proxy URL in package.json
under the serve
task.
browser-sync start --https --proxy 'https://gregrickaby.test' --files \'dist/css/*.css, dist/js/*.js, **/*.html, !node_modules/**/*.html\'
(or you could remove the proxy... your choice!)
Watch
npm run watch
If you want to use this workflow with a WordPress Theme, checkout my WP Starter Theme.
Feel free to create an issue or tweet me.