mirror of
https://github.com/abhijithvijayan/web-extension-starter.git
synced 2025-10-07 07:22:37 +02:00
Merge pull request #105 from jeffpc1993/fix_css_plugin
[fix] changing css plugin for webpack 5
This commit is contained in:
commit
c323c1b6c9
2020
package-lock.json
generated
2020
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -69,7 +69,7 @@
|
|||||||
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
||||||
"html-webpack-plugin": "^5.6.0",
|
"html-webpack-plugin": "^5.6.0",
|
||||||
"mini-css-extract-plugin": "^2.7.7",
|
"mini-css-extract-plugin": "^2.7.7",
|
||||||
"optimize-css-assets-webpack-plugin": "^6.0.1",
|
"css-minimizer-webpack-plugin": "^7.0.0",
|
||||||
"postcss": "^8.4.33",
|
"postcss": "^8.4.33",
|
||||||
"postcss-loader": "^8.1.0",
|
"postcss-loader": "^8.1.0",
|
||||||
"prettier": "^3.2.4",
|
"prettier": "^3.2.4",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ const ExtensionReloader = require('webpack-ext-reloader');
|
|||||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||||
const WextManifestWebpackPlugin = require('wext-manifest-webpack-plugin');
|
const WextManifestWebpackPlugin = require('wext-manifest-webpack-plugin');
|
||||||
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
|
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
|
||||||
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
|
const CSSMinimizerPlugin = require('css-minimizer-webpack-plugin');
|
||||||
|
|
||||||
const viewsPath = path.join(__dirname, 'views');
|
const viewsPath = path.join(__dirname, 'views');
|
||||||
const sourcePath = path.join(__dirname, 'source');
|
const sourcePath = path.join(__dirname, 'source');
|
||||||
@ -187,9 +187,12 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
extractComments: false,
|
extractComments: false,
|
||||||
}),
|
}),
|
||||||
new OptimizeCSSAssetsPlugin({
|
new CSSMinimizerPlugin({
|
||||||
cssProcessorPluginOptions: {
|
minimizerOptions: {
|
||||||
preset: ['default', {discardComments: {removeAll: true}}],
|
preset: [
|
||||||
|
"default",
|
||||||
|
{ discardComments: { removeAll: true } },
|
||||||
|
],
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
new FilemanagerPlugin({
|
new FilemanagerPlugin({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user