1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2025-02-11 16:13:00 +01:00

Fixed Webpack build for overrides

This commit is contained in:
squidfunk 2021-02-14 16:19:03 +01:00
parent 4ef15bd440
commit eb814deb10

View File

@ -372,7 +372,7 @@ export default (_env: never, args: Configuration): Configuration[] => {
splitChunks: { splitChunks: {
cacheGroups: { cacheGroups: {
vendor: { vendor: {
test: /[\\/]node_modules[\\/]/, test: /\/node_modules\//,
name: "assets/javascripts/vendor", name: "assets/javascripts/vendor",
chunks: "all" chunks: "all"
} }
@ -417,20 +417,21 @@ export default (_env: never, args: Configuration): Configuration[] => {
/* Stylesheets */ /* Stylesheets */
new MiniCssExtractPlugin({ new MiniCssExtractPlugin({
filename: `[name]${hash}.css` filename: `[name]${hash}.css`
}), })
], ],
/* Optimizations */ /* Optimizations */
optimization: { optimization: {
splitChunks: { // minimize: false,
cacheGroups: { // splitChunks: {
vendor: { // cacheGroups: {
test: /[\\/]node_modules[\\/]/, // vendor: {
name: "overrides/assets/javascripts/vendor", // test: /\/node_modules\//,
chunks: "all" // name: "overrides/assets/javascripts/vendor",
} // chunks: "all"
} // }
} // }
// }
} }
} }
] ]