summaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-01-25 09:41:34 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2020-01-25 16:41:34 +0800
commit5b17bb8f3dbc180c72446000d82ba06fd7349dc7 (patch)
treef75eda7a6b1094a239769e8c4d7b9bbc010d1f07 /package.json
parent89f7dcb13d8cc8be9615004a2ce5a476c14bc8e6 (diff)
downloadgitea-5b17bb8f3dbc180c72446000d82ba06fd7349dc7.tar.gz
gitea-5b17bb8f3dbc180c72446000d82ba06fd7349dc7.zip
add css extraction and minification to webpack (#9944)
This changes the CSS output of webpack to output to the public/css directory instead of inling CSS in JS. This enables CSS minification and autoprefixer based on browserslist which would otherwise not be possible. The result of this change is two new output files currently: - public/css/swagger.css - public/css/gitgraph.css Co-authored-by: techknowlogick <matti@mdranta.net>
Diffstat (limited to 'package.json')
-rw-r--r--package.json6
1 files changed, 5 insertions, 1 deletions
diff --git a/package.json b/package.json
index 43d98dd9bb..5a10c10418 100644
--- a/package.json
+++ b/package.json
@@ -26,8 +26,12 @@
"eslint-config-airbnb-base": "14.0.0",
"eslint-plugin-import": "2.19.1",
"less": "3.10.3",
+ "mini-css-extract-plugin": "0.9.0",
+ "optimize-css-assets-webpack-plugin": "5.0.3",
"postcss-cli": "7.1.0",
- "style-loader": "1.1.2",
+ "postcss-loader": "3.0.0",
+ "postcss-preset-env": "6.7.0",
+ "postcss-safe-parser": "4.0.1",
"stylelint": "12.0.1",
"stylelint-config-standard": "19.0.0",
"terser-webpack-plugin": "2.3.2",