Closed
Description
- Operating System: Mac OS 10.15.5
- Node Version: 10.15.1
- NPM Version: 6.14.7
- webpack Version: 4.44.0
- css-loader Version: 4.0.0
Expected Behavior
Actual Behavior
Code
// webpack.config.js
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin");
const WebpackNotifierPlugin = require( 'webpack-notifier' );
module.exports = [
{
entry: {
"admin.css": "./assets/scss/admin.scss",
},
mode: process.env.NODE_ENV,
output: {
path: __dirname,
filename: './assets/dist/[name]',
},
module: {
rules: [
{
test: /\.s?css$/,
use: [MiniCssExtractPlugin.loader, 'css-loader'],
}
]
},
plugins: [
new WebpackNotifierPlugin(),
new MiniCssExtractPlugin(),
new OptimizeCSSAssetsPlugin()
]
},
];
How Do We Reproduce?
admin.scss
is an empty file. If I comment out new OptimizeCSSAssetsPlugin()
, the build succeeds as expected.
Any suggestions on how I can debug further?
Metadata
Metadata
Assignees
Labels
No labels