3 ms·
I don't understand why so many people use Gulp and file-system watchers during development. You have a web server, why not use it? In our apps, when you reques
by lobster_johnson 11y ago
I don't understand why so many people use Gulp and file-system watchers during development. You have a web server, why not use it?
In our apps, when you request /app.js or /app.css or whatever, it goes through the tools (Browserify and SASS in our case) and delivers the transpiled versions on the fly.
We use a little NPM package called Staticr [1] to declare the pipelines so that the on-the-fly version used during development is identical to the production-time one. In production, we simply run Staticr against the pipelines, which produces the necessary minified files.
[1] https://github.com/bjoerge/staticr https://github.com/bjoerge/staticr