Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make grunt not minify certain js files

My grunt script generated by yeoman concats and minifies js files through useminPrepare, concat, and uglifyjs.

This is working great, but there is one js script that I do not want it to minify. How do I specify that in the grunt file?

like image 580
Hisham Avatar asked Mar 19 '23 03:03

Hisham


1 Answers

What you can do it's to put the files you don't want to minify outside of the build script, for example:

<!-- build:js js/app.js -->
<script src="js/app.js"></script>
<script src="js/minifythis.js"></script>
<script src="js/models/minifythis.js"></script>
<!-- endbuild -->
<script src="js/do-not-minify-this.js"></script>
like image 124
Mimo Avatar answered Apr 27 '23 00:04

Mimo