更新
This commit is contained in:
21
composeApp/webpack.config.d/watch.js
Normal file
21
composeApp/webpack.config.d/watch.js
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Temporary workaround for [KT-80582](https://youtrack.jetbrains.com/issue/KT-80582)
|
||||
*
|
||||
* This file should be safe to be removed once the ticket is closed and the project is updated to Kotlin version which solves that issue.
|
||||
*/
|
||||
config.watchOptions = config.watchOptions || {
|
||||
ignored: ["**/*.kt", "**/node_modules"]
|
||||
}
|
||||
|
||||
if (config.devServer) {
|
||||
config.devServer.static = config.devServer.static.map(file => {
|
||||
if (typeof file === "string") {
|
||||
return {
|
||||
directory: file,
|
||||
watch: false,
|
||||
}
|
||||
} else {
|
||||
return file
|
||||
}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user