diff options
author | Mike L <cl.jeremy@qq.com> | 2020-08-29 01:41:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-28 19:41:28 -0400 |
commit | e1eee2d00a11045c3e4fdf673c4a72ac11061ec1 (patch) | |
tree | 1c6db51934990ca9e15a6ceac77f69e7290f5597 /webpack.config.js | |
parent | 7ba6fea0b7cf9b63688b093151e36f3f34cd78cb (diff) | |
download | gitea-e1eee2d00a11045c3e4fdf673c4a72ac11061ec1.tar.gz gitea-e1eee2d00a11045c3e4fdf673c4a72ac11061ec1.zip |
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>
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js index b8c26dacee..67e8a6ffce 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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, }, |