feat: 完成 v0.6.0 墨呈品牌迁移
This commit is contained in:
+16
-1
@@ -9,6 +9,17 @@ const rootPackage = JSON.parse(
|
||||
"utf8"
|
||||
)
|
||||
) as { version: string };
|
||||
const productBrand = JSON.parse(
|
||||
readFileSync(
|
||||
fileURLToPath(new URL("../../product.json", import.meta.url)),
|
||||
"utf8"
|
||||
)
|
||||
) as {
|
||||
displayName: string;
|
||||
windowTitle: string;
|
||||
slogan: string;
|
||||
description: string;
|
||||
};
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
@@ -16,7 +27,11 @@ export default defineConfig({
|
||||
new URL("../../logos/web", import.meta.url)
|
||||
),
|
||||
define: {
|
||||
__APP_VERSION__: JSON.stringify(rootPackage.version)
|
||||
__APP_VERSION__: JSON.stringify(rootPackage.version),
|
||||
__APP_DISPLAY_NAME__: JSON.stringify(productBrand.displayName),
|
||||
__APP_WINDOW_TITLE__: JSON.stringify(productBrand.windowTitle),
|
||||
__APP_SLOGAN__: JSON.stringify(productBrand.slogan),
|
||||
__APP_DESCRIPTION__: JSON.stringify(productBrand.description)
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
|
||||
Reference in New Issue
Block a user