Gradle, JS, webpack: escape strings inside webpack config
#KT-31985
This commit is contained in:
+3
-3
@@ -200,10 +200,10 @@ data class KotlinWebpackConfigWriter(
|
|||||||
"""
|
"""
|
||||||
// entry
|
// entry
|
||||||
if (!config.entry) config.entry = [];
|
if (!config.entry) config.entry = [];
|
||||||
config.entry.push('${entry.canonicalPath}');
|
config.entry.push(${jsQuotedString(entry.canonicalPath)});
|
||||||
config.output = {
|
config.output = {
|
||||||
path: '${outputPath.canonicalPath}',
|
path: ${jsQuotedString(outputPath.canonicalPath)},
|
||||||
filename: '${entry.name}'
|
filename: ${jsQuotedString(entry.name)}
|
||||||
};
|
};
|
||||||
|
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
|
|||||||
Reference in New Issue
Block a user