summaryrefslogtreecommitdiffstats
path: root/semantic.json
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-06-28 04:59:56 +0200
committerGitHub <noreply@github.com>2020-06-27 22:59:56 -0400
commit7761245d087c9477ea7f3e50c60daecd6cc6ec14 (patch)
treead8884856cef8ccae786f3889cd9a51486a8b738 /semantic.json
parent2281b048af8837a33adfc9acfd3872022c789026 (diff)
downloadgitea-7761245d087c9477ea7f3e50c60daecd6cc6ec14.tar.gz
gitea-7761245d087c9477ea7f3e50c60daecd6cc6ec14.zip
Move fomantic and jQuery to main webpack bundle (#11997)
This saves around 3 MB binary size by not including useless fomantic files in the build. Also, this allows us to move jQuery into the main bundle as well which eliminates a few HTTP requests. Also included are webpack config changes: - split less and css loaders to speed up compliation - enable css sourcemaps - switch css minfier plugin to cssnano-webpack-plugin which works better for sourcemaps than the previous plugin Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'semantic.json')
-rw-r--r--semantic.json10
1 files changed, 5 insertions, 5 deletions
diff --git a/semantic.json b/semantic.json
index 0187b9c68f..a103afccb3 100644
--- a/semantic.json
+++ b/semantic.json
@@ -9,12 +9,12 @@
"themes": "src/themes/"
},
"output": {
- "packaged": "../../public/fomantic/",
- "uncompressed": "../../public/fomantic/components/",
- "compressed": "../../public/fomantic/components/",
- "themes": "../../public/fomantic/themes/"
+ "packaged": "../../web_src/fomantic/build/",
+ "uncompressed": "../../web_src/fomantic/build/components/",
+ "compressed": "../../web_src/fomantic/build/components/",
+ "themes": "../../web_src/fomantic/build/themes/"
},
- "clean": "../../public/fomantic/"
+ "clean": "../../web_src/fomantic/build/"
},
"permission": false,
"autoInstall": false,