Created
May 7, 2019 13:45
-
-
Save GeorgeBekh/11099a91b608af926a7e44e59779e368 to your computer and use it in GitHub Desktop.
Cacheable exec task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task webpack(type: Exec) { | |
outputs.cacheIf { true } | |
inputs.file("package-lock.json") | |
inputs.dir("app") | |
// NOTE: Add inputs.file("webpack.config.js") for projects that have it | |
outputs.dir("$buildDir/js") | |
commandLine "$projectDir/node_modules/.bin/webpack", "app/index.js", "$buildDir/js/bundle.js" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment