V16: Vite development optimizations (#18915)

* feat: resolve TODO by removing quiet option

* feat: exclude ./src/mocks from production build

* feat: load only msw when running through vite

* feat: optimise load order

* feat: handles mocked logos with virtual path

* feat: loads mocked service worker from virtual path

* feat: loads assets from virtual path

* feat: forces MSW=on for the static build

* build: adds storybook workflow copied over from the old backoffice repository

* build: limits where the build runs

* build: adds workflow to build a static version of the backoffice upon request

* build: excludes the `/umbraco/backoffice/assets` folder from navigation fallback just in case

* build: triggers run when the workflow file itself changes

* build: triggers run when package.json changes

* build: marks the 'contrib' branch as production

* build: activates static builds on preview/* labels

* build: bumps github checkout version

* build: updates key for backoffice web app

* build: updates key for storybook

* build: disables build for release branches to preseve on preview environments
This commit is contained in:
Jacob Overgaard
2025-04-03 16:15:04 +02:00
committed by GitHub
parent c3709de1d3
commit 7d7db6bb2b
12 changed files with 150 additions and 42 deletions

View File

@@ -3,19 +3,12 @@
<head>
<base href="/" />
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="umbraco/backoffice/assets/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Umbraco</title>
<script type="importmap">
{
"imports": {
"@umbraco-cms/backoffice/block-rte": "/src/packages/block/block-rte/index.ts"
}
}
</script>
<script src="node_modules/msw/lib/iife/index.js"></script>
<link rel="stylesheet" href="node_modules/@umbraco-ui/uui-css/dist/uui-css.css" />
<link rel="icon" type="image/svg+xml" href="./umbraco/backoffice/assets/favicon.svg" />
<link rel="stylesheet" href="src/css/umb-css.css" />
<link rel="stylesheet" href="./umbraco/backoffice/css/uui-css.css" />
<script src="./umbraco/backoffice/msw/index.js"></script>
<script type="module" src="index.ts"></script>
</head>