diff options
author | silverwind <me@silverwind.io> | 2020-01-28 08:30:39 +0100 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2020-01-28 07:30:39 +0000 |
commit | 1019913eaba0e8ad3a67174a1a13c673ee832406 (patch) | |
tree | 9190e22de87a7c8537bd1e31e18a41b2cedd2f18 /web_src/less/themes | |
parent | 4377e14304f3cbc39fece64bafad1778bfdf04d4 (diff) | |
download | gitea-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 'web_src/less/themes')
-rw-r--r-- | web_src/less/themes/_base.less | 3 | ||||
-rw-r--r-- | web_src/less/themes/theme-arc-green.less (renamed from web_src/less/themes/arc-green.less) | 2 |
2 files changed, 0 insertions, 5 deletions
diff --git a/web_src/less/themes/_base.less b/web_src/less/themes/_base.less deleted file mode 100644 index e339a6fa8e..0000000000 --- a/web_src/less/themes/_base.less +++ /dev/null @@ -1,3 +0,0 @@ -// TODO: Instead of having each theme file define each -// CSS/LESS item in this file and then overide -// in the theme files diff --git a/web_src/less/themes/arc-green.less b/web_src/less/themes/theme-arc-green.less index 3ac35570bb..a40c2fc1a5 100644 --- a/web_src/less/themes/arc-green.less +++ b/web_src/less/themes/theme-arc-green.less @@ -1,5 +1,3 @@ -@import "_base"; - .hljs { display: block; overflow-x: auto; |