Giter Club home page Giter Club logo

Comments (4)

davemo avatar davemo commented on July 18, 2024

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.

screen shot 2013-07-18 at 8 56 46 pm

from frontend-workflows-with-grunt-and-angularjs.

davemo avatar davemo commented on July 18, 2024

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.

sdeering avatar sdeering commented on July 18, 2024

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.

davemo avatar davemo commented on July 18, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.