samaxes / minify-maven-plugin

Combine and minimize JavaScript and CSS files for faster page loading.
http://samaxes.github.com/minify-maven-plugin
Apache License 2.0
222 stars 91 forks source link

Invalid Property error in AngularJS ui-route abstract keyword #165

Open Kaiser1989 opened 6 years ago

Kaiser1989 commented 6 years ago

Minification detects error on abstract keyword in AngularJS UI-Router definition:

test.js:

app.config(function($stateProvider, $urlRouterProvider) {
    ...
    $stateProvider.state("app", {
        url: "/",
        abstract: true,
        views: {
                        ...
        }
    });
});

[ERROR] invalid property id test.js: abstract: true,

Expected behaviour: abstract should be treated as property in this context and not as class keyword