Skip to content

Commit

Permalink
Sync webpack.conf.js from starterkit
Browse files Browse the repository at this point in the history
The CssMinimizerOptions where for a patternfly issue which is already
resolved. patternfly/patternfly-react#5650
  • Loading branch information
jelly committed Jan 12, 2022
1 parent d40ccfa commit 8104b81
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions webpack.config.js
Expand Up @@ -8,8 +8,6 @@ const CompressionPlugin = require("compression-webpack-plugin");
const ESLintPlugin = require('eslint-webpack-plugin');
const CockpitPoPlugin = require("./src/lib/cockpit-po-plugin");

const webpack = require("webpack");

// absolute path disables recursive module resolution, so build a relative one
const nodedir = path.relative(process.cwd(), path.resolve((process.env.SRCDIR || __dirname), "node_modules"));

Expand All @@ -25,10 +23,7 @@ const copy_files = [
const plugins = [
new copy({ patterns: copy_files }),
new extract({filename: "[name].css"}),
new ESLintPlugin({
extensions: ["js", "jsx"],
failOnWarning: true,
}),
new ESLintPlugin({ extensions: ["js", "jsx"] }),
new CockpitPoPlugin(),
];

Expand Down Expand Up @@ -81,11 +76,7 @@ module.exports = {
},
},
}),
new CssMinimizerPlugin({
minimizerOptions: {
preset: ['default', { mergeLonghand: false }]
}
})
new CssMinimizerPlugin()
],
},

Expand Down

0 comments on commit 8104b81

Please sign in to comment.