News for hackers. Stuff that matters.
Re:The cost of transpiling ES2015 in 2016 by lobster_johnson on Monday February 08, 2016 @09:53PM (#11062740)
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

There are no comments on this comment yet.