Replace blocks of tags in html files referencing javascript or css files with a single unified file. You can configure usemin to automatically minify css and uglify javascript.
Questions tagged [grunt-usemin]
218 questions
65
votes
1 answer
Node glob pattern for every .js file except .spec.js
I am looking for a better glob pattern for usemin, i want to to find all .js files but exclude the .spec.js files. I have the following solution so far.
The solution i have at the…

roughcoder
- 1,190
- 1
- 8
- 11
28
votes
6 answers
Grunt usemin and useminPrepare multiple targets
From the usemin issues it appears that usemin and useminPrepare support multiple targets in the latest version:
Support multiple targets in useminPrepare:
pull#162
pull#206
usemin support:
Multiple targets
I've tried using multiple targets…

Răzvan Flavius Panda
- 21,730
- 17
- 111
- 169
26
votes
1 answer
How to include scripts automatically in a yeoman/grunt project?
I have a working yeoman project. I am using grunt-usemin.
To include javascripts, I do this in index.html: