February 2018
Intermediate to advanced
406 pages
9h 52m
English
In this section you’ll set up the JavaScript and present some passing code without unit testing. In the next chapter you’ll set up JavaScript unit-testing tools and see how you might test-drive JavaScript features.
Rails 5.1 makes two important changes to the JavaScript environment:
Webpack is an optional replacement for the Rails asset pipeline and has the same general purpose: take files that might be written in JavaScript, CoffeeScript, TypeScript, Elm, or another language, and build them into JavaScript files that can be passed to the browser. Webpack’s advantage is that it’s flexible, it’s tied into the current ...