This repository has been archived by the owner on Jun 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 69
webpack.config.d directory should be optional #141
Comments
For now I'm using allprojects {
// TODO remove once https://github.com/Kotlin/kotlin-frontend-plugin/issues/141 is fixed
plugins.whenPluginAdded { plugin ->
if (plugin.class.name == 'org.jetbrains.kotlin.gradle.frontend.FrontendPlugin') {
def fixTask = tasks.register('webpack-config-fix') {
it.doLast { file('webpack.config.d').mkdir() }
}
afterEvaluate {
tasks.named('webpack-config').configure {
it.dependsOn(fixTask)
}
}
}
}
} |
Fix for Gradle Kotlin DSL (based on @JakeWharton answer)
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Gradle 5.2, Kotlin 1.3.21, kotlin-frontend-plugin 0.0.45
When my modules using the frontend plugin do not have a
webpack.config.d
directory Gradle fails to validate the task:Adding an empty
webpack.config.d
directory solves the problem, but should not be required.The text was updated successfully, but these errors were encountered: