Adding in sweeping changes
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
const { merge } = require('webpack-merge');
|
||||
const commonConfiguration = require('./webpack.common.js');
|
||||
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
||||
const path = require('path');
|
||||
const MiniCSSExtractPlugin = require('mini-css-extract-plugin');
|
||||
const HtmlCriticalPlugin = require('html-critical-webpack-plugin');
|
||||
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
|
||||
const ImageMinimizerPlugin = require('image-minimizer-webpack-plugin');
|
||||
|
||||
module.exports = merge(commonConfiguration, {
|
||||
mode: 'production',
|
||||
@@ -16,14 +13,9 @@ module.exports = merge(commonConfiguration, {
|
||||
output: {
|
||||
filename: 'js/[name].[contenthash].js',
|
||||
path: path.resolve(__dirname, './dist'),
|
||||
clean: true,
|
||||
assetModuleFilename: 'assets/images/[name][ext][query]',
|
||||
clean: true
|
||||
},
|
||||
plugins: [
|
||||
new CleanWebpackPlugin(),
|
||||
new MiniCSSExtractPlugin({
|
||||
filename: 'css/[name].[contenthash].css',
|
||||
}),
|
||||
// new ImageMinimizerPlugin({
|
||||
// minimizerOptions: {
|
||||
// // Lossless optimization with custom option
|
||||
|
||||
Reference in New Issue
Block a user