diff options
author | 2021-02-17 21:58:04 -0800 | |
---|---|---|
committer | 2021-02-17 22:07:28 -0800 | |
commit | 9569666259a71d12438d4484ce9fc43309fea99c (patch) | |
tree | 697a9effbf62c0ee3c81729d3ea1ea60d213cfab /cli/cli.go | |
parent | 42edd357bc5622b56f93b658a270ecb6918a0137 (diff) | |
download | v2-9569666259a71d12438d4484ce9fc43309fea99c.tar.gz v2-9569666259a71d12438d4484ce9fc43309fea99c.tar.zst v2-9569666259a71d12438d4484ce9fc43309fea99c.zip |
Use embed package for CSS bundles instead of generated files
Diffstat (limited to 'cli/cli.go')
-rw-r--r-- | cli/cli.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -13,6 +13,7 @@ import ( "miniflux.app/locale" "miniflux.app/logger" "miniflux.app/storage" + "miniflux.app/ui/static" "miniflux.app/version" ) @@ -106,6 +107,15 @@ func Parse() { logger.Fatal("Unable to load translations: %v", err) } + logger.Debug("Loading static assets...") + if err := static.CalculateBinaryFileChecksums(); err != nil { + logger.Fatal("Unable to calculate binary files checksum: %v", err) + } + + if err := static.GenerateStylesheetsBundles(); err != nil { + logger.Fatal("Unable to generate stylesheet bundles: %v", err) + } + db, err := database.NewConnectionPool( config.Opts.DatabaseURL(), config.Opts.DatabaseMinConns(), |