1
0
Fork 0
forked from forgejo/forgejo

Update JS dependencies (#12474)

* Update JS dependencies

- Update worker-loader options (currently unused pending #12459)
- Remove @babel/plugin-proposal-object-rest-spread, it's enabled by
  default
- Switch cssnano-webpack-plugin to css-minimizer-webpack-plugin which
  had been renamed

* switch to css-minimizer-webpack-plugin
This commit is contained in:
silverwind 2020-08-12 00:30:47 +02:00 committed by GitHub
parent 74bd9691c6
commit c18b0529ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 400 additions and 289 deletions

View file

@ -1,6 +1,6 @@
const fastGlob = require('fast-glob');
const wrapAnsi = require('wrap-ansi');
const CssNanoPlugin = require('cssnano-webpack-plugin');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const FixStyleOnlyEntriesPlugin = require('webpack-fix-style-only-entries');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
@ -80,9 +80,9 @@ module.exports = {
},
},
}),
new CssNanoPlugin({
new CssMinimizerPlugin({
sourceMap: true,
cssnanoOptions: {
minimizerOptions: {
preset: [
'default',
{
@ -113,9 +113,7 @@ module.exports = {
{
loader: 'worker-loader',
options: {
name: '[name].js',
inline: true,
fallback: false,
inline: 'no-fallback',
},
},
],
@ -151,7 +149,6 @@ module.exports = {
regenerator: true,
}
],
'@babel/plugin-proposal-object-rest-spread',
],
generatorOpts: {
compact: false,