[Gradle, JS] Single entry for webpack

This commit is contained in:
Ilya Goncharov
2019-10-16 15:48:28 +03:00
parent 973cd51497
commit 6c4e7921f7
@@ -209,8 +209,7 @@ data class KotlinWebpackConfig(
appendln(
"""
// entry
if (!config.entry) config.entry = [];
config.entry.push(${entry.canonicalPath.jsQuoted()});
config.entry = ${entry.canonicalPath.jsQuoted()};
config.output = {
path: ${outputPath.canonicalPath.jsQuoted()},
filename: ${outputFileName!!.jsQuoted()}