ko 6.5.9 → 6.5.10-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,13 @@ const auto_polyfills_webpack_plugin_1 = __importDefault(require("@dtinsight/auto
16
16
  const friendly_errors_webpack_plugin_1 = __importDefault(require("@nuxt/friendly-errors-webpack-plugin"));
17
17
  const error_overlay_webpack_plugin_1 = __importDefault(require("error-overlay-webpack-plugin"));
18
18
  function getPlugins(opts) {
19
- const { isProd, htmlTemplate, copy, analyzer, autoPolyfills, serve: { host, port, compilationSuccessInfo }, } = opts;
19
+ const { isProd, htmlTemplate, htmlChunks, copy, analyzer, autoPolyfills, serve: { host, port, compilationSuccessInfo }, } = opts;
20
+ const htmlOptions = {
21
+ template: htmlTemplate,
22
+ };
23
+ if (htmlChunks) {
24
+ htmlOptions.chunks = htmlChunks;
25
+ }
20
26
  return [
21
27
  new webpack_1.IgnorePlugin({
22
28
  resourceRegExp: /^\.\/locale$/,
@@ -65,9 +71,7 @@ function getPlugins(opts) {
65
71
  chunkFilename: 'css/[id].[contenthash].css',
66
72
  }),
67
73
  new case_sensitive_paths_webpack_plugin_1.default(),
68
- new html_webpack_plugin_1.default({
69
- template: htmlTemplate,
70
- }),
74
+ new html_webpack_plugin_1.default(htmlOptions),
71
75
  copy &&
72
76
  new copy_webpack_plugin_1.default({
73
77
  patterns: copy,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ko",
3
- "version": "6.5.9",
3
+ "version": "6.5.10-beta.0",
4
4
  "description": "build & lint library",
5
5
  "keywords": [
6
6
  "ko",