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>
This commit is contained in:
silverwind
2020-06-28 04:59:56 +02:00
repo.diff.committed_by GitHub
repo.diff.parent 2281b048af
repo.diff.commit 7761245d08
repo.diff.stats_desc%!(EXTRA int=9, int=88, int=69)

2
.gitignore repo.diff.vendored
repo.diff.view_file

@@ -79,8 +79,8 @@ coverage.all
/public/serviceworker.js
/public/css
/public/fonts
/public/fomantic
/public/img/svg
/web_src/fomantic/build
/VERSION
# Snapcraft