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

Commit

Permalink
fix(styles): turn off css optimizer (#646)
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Turley <mike.turley@alum.cs.umass.edu>
  • Loading branch information
seanforyou23 and mturley committed Jun 14, 2021
1 parent 2ac77c2 commit a4ed79e
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 210 deletions.
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

0 comments on commit a4ed79e

Please sign in to comment.