fix(Build): Fix production build failure due to missing plugin
@@ -82,7 +82,6 @@ module.exports = (env = {}, { mode }) => {
const docsPlugins =
isDocs || isDevelopment
? [
- new MiniCssExtractPlugin(),
new HtmlWebpackPlugin({
template: './src/template.html',
chunks: ['demo/index', 'demo/styles', ...themePaths]
@@ -119,6 +118,7 @@ module.exports = (env = {}, { mode }) => {
},
plugins: [
new CleanWebpackPlugin(),
+ new MiniCssExtractPlugin(),
...devPlugins,
...docsPlugins,
// After a successful build, delete empty artifacts generated by Webpack for
