question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add usemin option

See original GitHub issue

From @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:closed
  • Created 10 years ago
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
orlandocommented, Feb 21, 2014

I’ll leave this here in case someone is looking into how make grunt-rev work with grunt-angular-templates

https://github.com/yeoman/grunt-usemin/issues/235#issuecomment-33266949

0reactions
marcaljcommented, Dec 16, 2013

@ericclemmons Works perfectly! Excellent job! 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found