mirror of
https://github.com/go-gitea/gitea
synced 2025-07-16 07:18:37 +00:00
Avoid unnecessary system-ui expansion (#12522)
* Avoid unnecessary system-ui expansion (fix #12325) * extract config to static object Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
@@ -13,6 +13,12 @@ const {resolve, parse} = require('path');
|
||||
const {LicenseWebpackPlugin} = require('license-webpack-plugin');
|
||||
const {SourceMapDevToolPlugin} = require('webpack');
|
||||
|
||||
const postCssPresetEnvConfig = {
|
||||
features: {
|
||||
'system-ui-font-family': false,
|
||||
}
|
||||
};
|
||||
|
||||
const glob = (pattern) => fastGlob.sync(pattern, {cwd: __dirname, absolute: true});
|
||||
|
||||
const themes = {};
|
||||
@@ -178,7 +184,7 @@ module.exports = {
|
||||
loader: 'postcss-loader',
|
||||
options: {
|
||||
plugins: () => [
|
||||
PostCSSPresetEnv(),
|
||||
PostCSSPresetEnv(postCssPresetEnvConfig),
|
||||
],
|
||||
sourceMap: true,
|
||||
},
|
||||
@@ -204,7 +210,7 @@ module.exports = {
|
||||
loader: 'postcss-loader',
|
||||
options: {
|
||||
plugins: () => [
|
||||
PostCSSPresetEnv(),
|
||||
PostCSSPresetEnv(postCssPresetEnvConfig),
|
||||
],
|
||||
sourceMap: true,
|
||||
},
|
||||
|
Reference in New Issue
Block a user