Skip to content

Minification problem? ("angular is not defined" via grunt serve:dist) #498

Closed
@brianfeister

Description

@brianfeister

First off - this project is incredible, thank you so much!!!

Second, I just scaffolded out a new app, made zero changes to it, ran grunt serve:dist and the project builds but when it opens in Chrome throws an angular is not defined error from app.js because {hash}.vendor.js is empty. It seems like

/client/index.html:

    <!-- build:js({client}) app/vendor.js -->
      <!-- bower:js -->
      [...]
      <script src="bower_components/angular-ui-router/release/angular-ui-router.js"></script>
      <!-- endbower -->

    <!-- endbuild -->

is failing to inject prior to the concat and minify tasks for the grunt serve:dist build. What's confusing about this for me, is that it works fine with grunt serve (e.g. the dev build).

Any ideas where I might poke to find a fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions