

But why, it was working just fine before? So you revert everything, and confirm that live reload works if you don't use extract-text, which leaves you with a choice: After getting the aforementioned extract-text-plugin to work, which wasn't entirely straightforward, since I was using it with react-hot-loader, and the dev server, and the whatnot, it turns out that live reload does not work.
#JS SASS LIVERELOAD ES6 CODE#
Use that plugin to extract the CSS code from the generated JS bundle into a separate file (which even improves the perceived performance because JS and CSS are downloaded in parallel). When I looked through the closed issues on GitHub, there is a workaround (thought it’s not very convenient).So it turns out that it is, in fact, possible, it's just that the README in sass-loader is incorrect, and leads you on a false path:īecause of browser limitations, source maps are only available in conjunction with the extract-text-webpack-plugin. For example, how do I disable HTML minification on my builds, while maintaining CSS and JavaScript minification? I don’t see a description of that in the docs. But I think some more extensive documentation on customizing it would be useful. It’s true that one of Parcel’s huge benefits is how well it works out-of-the-box. So there should be a way to override this behavior when that version of Parcel is stable (current stable version is 1.12.4).Īnother drawback is that I found the Parcel documentation is pretty minimal when it comes to information on customizing the configuration options for the different features. The good news is this seems to have been corrected in the upcoming Parcel version 2 (still in Alpha). Since these are production files, it might not matter much. This happens even if you have your CSS and JavaScript files in separate folders.

But in my own research I’ve found a few things I can mention that should be improved in the future.įirst of all, you’ll notice that Parcel always places your bundled scripts and stylesheets in the same directory as the entry point HTML files. Parcel should definitely be the go-to choice for those who have little or no experience with build tools. I’ll slowly go over the features in this tutorial using some simple examples that you’ll easily be able to follow along with. With that out of the way, let’s get started with the basics for getting up and running with Parcel.js. There certainly are lots of reasons to use a bundler, if this is something you haven’t yet considered. Development files are organized modularly, making your code much easier to maintain and debugĪs you can see, the benefits are many, and mostly related to performance and project maintenance.
#JS SASS LIVERELOAD ES6 MANUAL#
