CHAPTER 4

image

Using Grunt with JavaScript

At this point, I’ve covered setting up Grunt on a project, and you’ve seen how it can help when working with CSS and HTML. Next, we’ll start to explore the benefits of using Grunt while developing in JavaScript. As mentioned, when you were first introduced to Grunt, it is written on top of the Node.js platform, a JavaScript engine. This fact makes Grunt the perfect tool to use while working with JavaScript, as developers can exploit existing Node.js modules to rapidly process plug-ins to extend their workflow. In this chapter, I’ll cover how Grunt can help with JavaScript templating, working with JavaScript ...

Get Pro Grunt.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.