summaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-01-28 08:30:39 +0100
committerzeripath <art27@cantab.net>2020-01-28 07:30:39 +0000
commit1019913eaba0e8ad3a67174a1a13c673ee832406 (patch)
tree9190e22de87a7c8537bd1e31e18a41b2cedd2f18 /package.json
parent4377e14304f3cbc39fece64bafad1778bfdf04d4 (diff)
downloadgitea-1019913eaba0e8ad3a67174a1a13c673ee832406.tar.gz
gitea-1019913eaba0e8ad3a67174a1a13c673ee832406.zip
move CSS build to webpack (#9983)
- added new 'make webpack' target - deprecated 'make js' and 'make css' - extend webpack config to load the less files - updated docs I had to rename the source file of `arc-green.less` to avoid generating a useless JS entrypoint via webpack-fix-style-only-entries which would not work with different source/destination filenames. I hear that there should be cleaner solutions possible once we upgrade to Webpack 5. Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'package.json')
-rw-r--r--package.json8
1 files changed, 4 insertions, 4 deletions
diff --git a/package.json b/package.json
index 5a10c10418..506fcde6e2 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,6 @@
"@babel/plugin-transform-runtime": "7.7.6",
"@babel/preset-env": "7.7.7",
"@babel/runtime": "7.7.7",
- "autoprefixer": "9.7.3",
"babel-loader": "8.0.6",
"core-js": "3.6.2",
"css-loader": "3.4.1",
@@ -25,10 +24,10 @@
"eslint": "6.8.0",
"eslint-config-airbnb-base": "14.0.0",
"eslint-plugin-import": "2.19.1",
- "less": "3.10.3",
+ "fast-glob": "3.1.1",
+ "less-loader": "5.0.0",
"mini-css-extract-plugin": "0.9.0",
"optimize-css-assets-webpack-plugin": "5.0.3",
- "postcss-cli": "7.1.0",
"postcss-loader": "3.0.0",
"postcss-preset-env": "6.7.0",
"postcss-safe-parser": "4.0.1",
@@ -39,7 +38,8 @@
"vue-loader": "15.8.3",
"vue-template-compiler": "2.6.11",
"webpack": "4.41.5",
- "webpack-cli": "3.3.10"
+ "webpack-cli": "3.3.10",
+ "webpack-fix-style-only-entries": "0.4.0"
},
"browserslist": [
"defaults"