mirror of
https://github.com/go-gitea/gitea
synced 2024-11-05 05:39:14 +01:00
7761245d08
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>
60 lines
1.1 KiB
JSON
60 lines
1.1 KiB
JSON
{
|
|
"version": "2.8.6",
|
|
"base": "node_modules/fomantic-ui",
|
|
"paths": {
|
|
"source": {
|
|
"config": "src/theme.config",
|
|
"definitions": "src/definitions/",
|
|
"site": "src/site/",
|
|
"themes": "src/themes/"
|
|
},
|
|
"output": {
|
|
"packaged": "../../web_src/fomantic/build/",
|
|
"uncompressed": "../../web_src/fomantic/build/components/",
|
|
"compressed": "../../web_src/fomantic/build/components/",
|
|
"themes": "../../web_src/fomantic/build/themes/"
|
|
},
|
|
"clean": "../../web_src/fomantic/build/"
|
|
},
|
|
"permission": false,
|
|
"autoInstall": false,
|
|
"rtl": false,
|
|
"admin": false,
|
|
"components": [
|
|
"accordion",
|
|
"api",
|
|
"breadcrumb",
|
|
"button",
|
|
"card",
|
|
"checkbox",
|
|
"comment",
|
|
"container",
|
|
"dimmer",
|
|
"divider",
|
|
"dropdown",
|
|
"form",
|
|
"grid",
|
|
"header",
|
|
"icon",
|
|
"image",
|
|
"input",
|
|
"item",
|
|
"label",
|
|
"list",
|
|
"loader",
|
|
"menu",
|
|
"message",
|
|
"modal",
|
|
"popup",
|
|
"progress",
|
|
"reset",
|
|
"search",
|
|
"segment",
|
|
"sidebar",
|
|
"site",
|
|
"tab",
|
|
"table",
|
|
"text",
|
|
"transition"
|
|
]
|
|
}
|