Running Prebuilt Tasks with Grunt
Explore how to automate common frontend tasks such as minification and concatenation using Grunt. Learn to install plugins, configure the Gruntfile, and run tasks to optimize your build process.
We'll cover the following...
We'll cover the following...
Common tasks such as concatenation, minification, and linting are built-in and are available to use as plugins. Note that the officially maintained plugins start with grunt-contrib on the website. Do explore this!
Install the plugin
The next step is to install the plugin via the command: npm install grunt-contrib-plugin-name --save-dev.
Remember minifying? We will try running a minification task with Grunt in this lesson. To follow along, run the command npm install grunt-contrib-uglify --save-dev in the ...