This allows us to use
npm as our build tool instead of
npm install wiper --save-dev or
npm install -g wiper
package.json, add these lines.
npm run watch, a livereload server will be running at
-pport to listen on, default to 35729.
-tdebounce timeout, default to 5000ms.
-wfiles to watch; note that you should use
\*to prevent bash from expanding globs, as we want wiper to expand it instead, also see that we double escape
\\*in package.json due to additional string escapes.
--key=ssl.keyto start livereload server on https, generate your self-signed certificate and import them into your CA trust store for this to work.
// for httpapp;// for httpsapp;
Or manually insert this line onto your template.
Now your browsers will be refreshed automatically when file change occurs. And see, no
gulp needed, just good-old