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

No output with minify using ADVANCED_MODE #144

Open
DrifterAtSea opened this issue Jan 18, 2017 · 0 comments
Open

No output with minify using ADVANCED_MODE #144

DrifterAtSea opened this issue Jan 18, 2017 · 0 comments

Comments

@DrifterAtSea
Copy link

DrifterAtSea commented Jan 18, 2017

I ran the minify task but no output was created. I created an "externs" file for jquery 3.1.1 using the online tool at:

http://www.dotnetwise.com/Code/Externs/

The minify task runs without any errors but the output file that it creates has nothing in it. Here is my gradle.build file:

plugins {
    id "com.eriwen.gradle.js" version "2.14.1"
}

javascript.source {
    dev {
        js {
            srcDir 'scripts'
            include "*.js"
            exclude "*.min.js"
        }
    }
    prod {
        js {
            srcDir 'scripts'
            include "*.min.js"
        }
    }
}

// Configure the built-in task
combineJs {
    encoding = "UTF-8"
    source = javascript.source.dev.js.files
    dest = file("${buildDir}/shodogg-mid-1.0.0.js")
}

minifyJs {
    source = combineJs
    dest = file("${buildDir}/shodogg-mid-1.0.0-min.js")
    sourceMap = file("${buildDir}/all.sourcemap.json")
    closure {
        warningLevel = 'VERBOSE'
        compilerOptions.languageIn = "ECMASCRIPT5"
        compilationLevel = "ADVANCED_OPTIMIZATIONS"
        externs = files("scripts/externs/jquery-3.1.1-externs.js")
    }
}
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

1 participant