@shopgate/webpack 7.30.0-alpha.2 → 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 -3
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
|
@@ -148,7 +148,6 @@ const config = {
|
|
|
148
148
|
},
|
|
149
149
|
},
|
|
150
150
|
}),
|
|
151
|
-
new webpack.optimize.ModuleConcatenationPlugin(),
|
|
152
151
|
|
|
153
152
|
// Plugin to minify the HTML output fo the default.ejs template
|
|
154
153
|
new HTMLWebpackPlugin({
|
|
@@ -200,7 +199,7 @@ const config = {
|
|
|
200
199
|
// Extract CSS into separate minified files on production builds
|
|
201
200
|
new MiniCssExtractPlugin({
|
|
202
201
|
filename: '[name].[contenthash].css',
|
|
203
|
-
chunkFilename: '[
|
|
202
|
+
chunkFilename: '[name].[contenthash].css',
|
|
204
203
|
}),
|
|
205
204
|
new CssMinimizerPlugin(),
|
|
206
205
|
] : []),
|
|
@@ -299,7 +298,6 @@ const config = {
|
|
|
299
298
|
moduleIds: 'deterministic',
|
|
300
299
|
chunkIds: 'deterministic',
|
|
301
300
|
nodeEnv: ENV,
|
|
302
|
-
minimize: true,
|
|
303
301
|
removeAvailableModules: true,
|
|
304
302
|
minimizer: [
|
|
305
303
|
new TerserPlugin({
|