Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

No enum constant com.google.javascript.jscomp.CompilationLevel.ADVANCED_OPTIMISATIONS #132

Closed
akisystems opened this issue Jun 30, 2016 · 2 comments

Comments

@akisystems
Copy link

I get the aforementioned error when running with the following configuration:

javascript.source {
    dev {
        js {
            srcDir 'src/main/resources/static/js'
            include "*.js"
            exclude "*.min.js"
        }
    }
    prod {
        js {
            srcDir 'src/main/resources/static/js'
            include "*.min.js"
        }
    }
}

minifyJs {
    source = 'src/main/resources/static/js/blah.js'
    dest = "${buildDir}/resources/main/static/js/blah.js"
    closure {
        compilationLevel = 'ADVANCED_OPTIMISATIONS'
        warningLevel = 'QUIET'
    }
}

I'm using version 2.12.0 and I've also tried 2.14.1, but the error appears with with either. Please help!

@eriwen
Copy link
Owner

eriwen commented Jul 17, 2016

@akisystems According to the Closure Compiler docs, compilationLevel should actually be 'ADVANCED_OPTIMIZATIONS'.

Please confirm if that fixes your issue and I'll close this.

@akisystems
Copy link
Author

facepalm How stupid of me! Thanks and sorry for wasting your time!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants