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:
parent
7ba6fea0b7
commit
e1eee2d00a
2 changed files with 16 additions and 10 deletions
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue