It’s good to know about the “native” way
Build tools come in all size and color. But do you really need them? Wouldn’t it be easier to just follow the original CLI documentation of Rollup, Stylus or whatever and call it a day? Not to mention they add up a lot of dependencies.
I’m going to show you the “native” way with NPM scripts and chokidar.
Let’s start by creating a node.js project. Open your terminal and write:
$ mkdir example
$ cd example
$ npm init -y
Also create some folders and install express:
$ mkdir -p css js public/js public/css
$ npm i express --save
Then we need a simple web server, create and open
... read the whole story at medium.com.