Add usemin option
See original GitHub issueFrom @pheuter:
@ericclemmons In my case, I am generating two javascript files, vendor.js and application.js. When concatenating ng-templates, I need to append solely to application.js. The error I was running into was due to the templates file being concatenated to both files and that caused errors.
// build:js(.) javascripts/vendor.js
// build:js(.) javascripts/application.js
In which case, the jump to 0.5.0
may not be warranted (whoops!), because this solution can let someone specify usemin: 'javascripts/application.js'
to target that specific dest
.
concat
is useful if you have a specific concat task, but trying to target what usemin generates for concat
is annoying at best.
Issue Analytics
- State:
- Created 10 years ago
- Comments:16 (4 by maintainers)
Top Results From Across the Web
usemin - npm
Start using usemin in your project by running `npm i usemin`. ... (object) opts Optional - See below for the available options.
Read more >nelsyeung/usemin-cli - GitHub
Replaces references to non-optimized scripts or stylesheets into a set of HTML files (or any templates/views) - GitHub - nelsyeung/usemin-cli: Replaces ...
Read more >How to add separator to Concat options when using Usemin - Stack ...
I am using Grunt-usemin. But the concatenated JS is not properly separated by ';'. How do I tell usemin to add the separator...
Read more >Gulp-usemin NPM | npm.io
First, install gulp-usemin as a development dependency: npm install --save-dev gulp-usemin. Then, add it to your gulpfile.js :
Read more >grunt-array-usemin - npm Package Health Analysis - Snyk
In your project's Gruntfile, add a section named contrib_levin_usemin to the data object passed into grunt.initConfig() . grunt.initConfig({ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll leave this here in case someone is looking into how make
grunt-rev
work withgrunt-angular-templates
https://github.com/yeoman/grunt-usemin/issues/235#issuecomment-33266949
@ericclemmons Works perfectly! Excellent job! 😃