Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

fix(styles): turn off css optimizer #646

Merged
merged 2 commits into from
Jun 14, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 1 addition & 7 deletions config/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
const { stylePaths } = require('./stylePaths');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const TerserJSPlugin = require('terser-webpack-plugin');

module.exports = merge(common('production'), {
Expand All @@ -12,11 +11,6 @@ module.exports = merge(common('production'), {
optimization: {
minimizer: [
new TerserJSPlugin({}),
new OptimizeCSSAssetsPlugin({
cssProcessorPluginOptions: {
preset: ['default', { mergeLonghand: false }],
},
}),
],
},
plugins: [
Expand All @@ -31,7 +25,7 @@ module.exports = merge(common('production'), {
test: /\.css$/,
include: [...stylePaths],
use: [
{ loader: MiniCssExtractPlugin.loader, options: { publicPath: '' } },
{ loader: MiniCssExtractPlugin.loader },
{ loader: 'css-loader' },
],
},
Expand Down