aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorsilverwind2020-10-19 22:01:06 +0200
committerGitHub2020-10-19 16:01:06 -0400
commit3ddf3f93d6346ac9440a7a571faea4b5c1c329be (patch)
tree2bf7348498659d923ce28a25eb1ce80f2944a0ad /webpack.config.js
parentd67172b1360017d9ddbbef0c44e46633e41a856b (diff)
Use CSS Variables for fonts, remove postcss-loader (#13204)
* Use CSS Variables for fonts, remove postcss-loader - Use CSS variables for fonts, making the fonts easier to customize - Remove postcss-loader, it's not doing anything useful and is actually applying strange transforms on our CSS. Fixes: https://github.com/go-gitea/gitea/issues/11045 * introduce helper variable, mark documented vars * work around case issue by always quoting specific fonts
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js39
1 files changed, 1 insertions, 38 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 7c4a6e265..1d6f16633 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -168,29 +168,10 @@ module.exports = {
loader: 'css-loader',
options: {
sourceMap: true,
- importLoaders: 1,
url: filterCssImport,
import: filterCssImport,
},
},
- {
- loader: 'postcss-loader',
- options: {
- sourceMap: true,
- postcssOptions: {
- plugins: [
- [
- 'postcss-preset-env',
- {
- features: {
- 'system-ui-font-family': false,
- },
- },
- ],
- ],
- },
- },
- },
],
},
{
@@ -203,30 +184,12 @@ module.exports = {
loader: 'css-loader',
options: {
sourceMap: true,
- importLoaders: 2,
+ importLoaders: 1,
url: filterCssImport,
import: filterCssImport,
},
},
{
- loader: 'postcss-loader',
- options: {
- sourceMap: true,
- postcssOptions: {
- plugins: [
- [
- 'postcss-preset-env',
- {
- features: {
- 'system-ui-font-family': false,
- },
- },
- ],
- ],
- },
- },
- },
- {
loader: 'less-loader',
options: {
sourceMap: true,