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:
Mike L 2020-08-29 01:41:28 +02:00 committed by GitHub
parent 7ba6fea0b7
commit e1eee2d00a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 10 deletions

View file

@ -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,
},