Comments (4)
I'm seeing the same error locally, it looks like it's happening shortly after the manual bootstrap from app/js/bootstrap.js
, ng-min does some post processing to add the long-form declaration of angular dependencies.
from frontend-workflows-with-grunt-and-angularjs.
Yeah it seems like there's an issue with ng-min and uglify, I must be missing one of the explicit injections somewhere, but I can't seem to find out what it is. You could try this as a workaround for now to disable argument mangling in Linemans uglify configuration:
Inside of with-lineman/config/application.js
add the following:
uglify: {
options: {
mangle: false
}
}
Then rebuild with lineman build
and see if that solves your issue @BytesFlipper :)
You won't have as much minification, but at least you'll be unblocked. I'll see what I can do to try and track down the explicit injection I'm missing.
from frontend-workflows-with-grunt-and-angularjs.
Nice one Dave this fixed it for me. I guess we'd like to be able to mangle it to increase performance (it increased my app.js size by 100kb). If it's some specific file causing the issue I guess we could use the mangle except clause? https://github.com/gruntjs/grunt-contrib-uglify#reserved-identifiers
from frontend-workflows-with-grunt-and-angularjs.
Hey @sdeering, the lineman-angular-template is behind on a needed update which replaces grunt-ngmin
with the new grunt-ng-annotate
. For the time being you could try and utilize the latter to see if it solves your issues. Annotations are one of the main new features coming in Angular 2.0, so it's probably good to familiarize yourself with the new direction anyways :)
from frontend-workflows-with-grunt-and-angularjs.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frontend-workflows-with-grunt-and-angularjs.