Update mini-css-extract-plugin, remove postcss (#23520)

Follow-up and proper fix for
https://github.com/go-gitea/gitea/pull/23504

Update to
[mini-css-extract-plugin@2.7.4](https://github.com/webpack-contrib/mini-css-extract-plugin/releases/tag/v2.7.4)
which fixes our specific issue described in
https://github.com/webpack-contrib/css-loader/issues/1503 and which
allows us to again drop the postcss dependency.

Backport of this is not necessary as I have included it in
https://github.com/go-gitea/gitea/pull/23508.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
silverwind 2023-03-16 20:06:53 +01:00 committed by GitHub
parent 6bad0fb24f
commit 4b72206805
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 70 additions and 329 deletions

View file

@ -145,23 +145,10 @@ export default {
loader: 'css-loader',
options: {
sourceMap: true,
importLoaders: 1,
url: {filter: filterCssImport},
import: {filter: filterCssImport},
},
},
{
loader: 'postcss-loader', /* for conditional import in theme-auto.css */
options: {
sourceMap: true,
postcssOptions: {
plugins: [
'postcss-import',
'postcss-url',
],
},
},
},
],
},
{