@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 +1 -1
- package/templates/default.ejs +5 -0
- package/webpack.config.js +1 -1
package/package.json
CHANGED
package/templates/default.ejs
CHANGED
|
@@ -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: '[
|
|
202
|
+
chunkFilename: '[name].[contenthash].css',
|
|
203
203
|
}),
|
|
204
204
|
new CssMinimizerPlugin(),
|
|
205
205
|
] : []),
|