Grunt – How to Copy Only New Files

In using Grunt on a large project, I wanted to speed up the build time by only copying files to the staging area that have changed. Unless I missed something, the Grunt Copy plugin always copies all files, regardless if they were changed or not. It does provide hooks that we can use in determining … Continue reading Grunt – How to Copy Only New Files

Advertisements

Grunt: How to embed the content of files in JavaScript Files

When working with any project, large or small, I almost always break up the source into different files in order provide clarity and maintain small working components. So you usually find a few different files under the src folder of my projects: JavaScript files, HTML files and CSS files - all of which are then … Continue reading Grunt: How to embed the content of files in JavaScript Files