@shopgate/webpack 7.30.0-alpha.3 → 7.30.0-alpha.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopgate/webpack",
3
- "version": "7.30.0-alpha.3",
3
+ "version": "7.30.0-alpha.4",
4
4
  "description": "The webpack configuration for Shopgate's Engage.",
5
5
  "main": "webpack.config.js",
6
6
  "license": "Apache-2.0",
@@ -10,6 +10,11 @@
10
10
  <title>
11
11
  <%= htmlWebpackPlugin.options.title %>
12
12
  </title>
13
+ <% if (htmlWebpackPlugin.files && htmlWebpackPlugin.files.css) { %>
14
+ <% htmlWebpackPlugin.files.css.forEach(function(css) { %>
15
+ <link rel="stylesheet" href="<%= css %>">
16
+ <% }) %>
17
+ <% } %>
13
18
  <% const scripts = htmlWebpackPlugin.files.js; %>
14
19
  <% const vendor = scripts.find(s => s.includes('vendor')); %>
15
20
  <% if (vendor) { %><script src="<%= vendor %>"></script><% } %>
package/webpack.config.js CHANGED
@@ -199,7 +199,7 @@ const config = {
199
199
  // Extract CSS into separate minified files on production builds
200
200
  new MiniCssExtractPlugin({
201
201
  filename: '[name].[contenthash].css',
202
- chunkFilename: '[id].[contenthash].css',
202
+ chunkFilename: '[name].[contenthash].css',
203
203
  }),
204
204
  new CssMinimizerPlugin(),
205
205
  ] : []),