-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use with usemin and no uglify step #129
Comments
+1 maybe it's expected? http://stackoverflow.com/questions/32147356/no-views-present-in-dist-when-building-with-grunt |
I have the same. It gives the error:
It looks like you have to concat the templates yourself in the concatted (non-uglified) output, but it will make usemin pretty useless. |
Well same issue, i have register 2 tasks, 1 for development purpose 1 for deployment. But now ngTemplate is expecting uglify:generated. ngAnnotate should not expect for usemin dependencies so strictly |
@fvanwijk What did you about this? I am facing the same issue. --Update-- |
@mhawila It seems that grunt-angular-template and especially grunt-usemin (unmaintained) is really an all-or-nothing solution. Custom configuration still has a lot of quirks. I only do Eventually I want to get rid of Grunt build tasks such as Note that when you use Webpack, you load bundle.js in a script tag in both development and production template, so there is no need voor template rewriting using grunt-angular-templates anymore. For completeness, this is my config, cleaned up for readibility, hope it still works for you:
Build task:
|
it seems like there is no way to avoid "uglify:generated" |
I'm using yeoman angular project template but my usemin task has no uglify step, only concat.
Here's my config:
ngtemplates: {
dist: {
cwd: 'app',
src: 'views/{,/}.html',
dest: '.tmp/templateCache.js',
options: {
module: 'myApp',
usemin: 'scripts/app.js'
}
}
},
During the build the generated templateCache.js is not added to the app.js and I see this error message: Usemin has not created uglify.generated yet!
When I changed the config to this:
options: {
module: 'myApp',
concat: 'generated',
}
it works but templateCache gets added to both app.js and vendor.js.
The text was updated successfully, but these errors were encountered: