This commit is contained in:
parent
ade7df2234
commit
246771e8a0
30 changed files with 143 additions and 86 deletions
|
@ -7,6 +7,7 @@ import version from "vite-plugin-package-version";
|
|||
import manifest from "./manifest.config";
|
||||
import { GetManualChunk } from "rollup";
|
||||
import devtools from "solid-devtools/vite";
|
||||
import { resolve } from "node:path";
|
||||
|
||||
/**
|
||||
* Put all strings (/i18n/{key}.<json|js|ts>) into separated chunks based on the key.
|
||||
|
@ -107,6 +108,23 @@ export default defineConfig(({ mode }) => {
|
|||
}),
|
||||
version(),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
/* We don't allow directly acessing the source root,
|
||||
because this encourage cross referencing between different
|
||||
module and loose the isolation. (Cross referencing is still
|
||||
possible, we don't stop it in any technical way.)
|
||||
|
||||
If the module is so important and is being referencing
|
||||
everywhere in the app. Consider promoting it to the top
|
||||
dir.
|
||||
|
||||
see docs/devnotes.md#module-isolation for details.
|
||||
*/
|
||||
"~platform": resolve(__dirname, "src/platform"),
|
||||
"~material": resolve(__dirname, "src/material"),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
https: serverHttpCertBase
|
||||
? {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue