"js is not defined" warning while processing template
microcosm opened this issue · 2 comments
microcosm commented
I get the following output:
> grunt useminPrepare
Running "useminPrepare:html" (useminPrepare) task
Warning: An error occurred while processing a template (js is not defined). Use --force to continue.
Here is my template:
<!-- build:js(app) /javascript/script.js -->
<script src="/javascript/jquery.js"></script>
<script src="/javascript/site.js"></script>
<script src="/javascript/analytics.js"></script>
<script src="/_bower_components/ideal-image-slider/ideal-image-slider.js"></script>
<!-- endbuild -->
refactornator commented
It looks like @microcosm fixed this with this commit. It worked for me too 👍
microcosm commented
Yep, it turned out to be a Gruntfile parsing error. Once usemin rewrites config values to the Gruntfile, the Gruntfile is reloaded and parsed, producing a parsing error that doesn't show up when the Gruntfile is originally parsed.