feng3d-cli 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/vite.config.js +5 -1
package/package.json
CHANGED
package/templates/vite.config.js
CHANGED
|
@@ -8,8 +8,10 @@ const namespace = 'feng3d';
|
|
|
8
8
|
const external = pkg.standalone ? [] : Object.keys(pkg.dependencies || []);
|
|
9
9
|
const globals = () => namespace;
|
|
10
10
|
|
|
11
|
+
// 构建时在输出文件底部添加版本号打印
|
|
12
|
+
const versionBanner = `console.log("${pkg.name} v${pkg.version}");`;
|
|
13
|
+
|
|
11
14
|
export default defineConfig({
|
|
12
|
-
publicDir: false,
|
|
13
15
|
build: {
|
|
14
16
|
lib: {
|
|
15
17
|
// Could also be a dictionary or array of multiple entry points
|
|
@@ -26,6 +28,8 @@ export default defineConfig({
|
|
|
26
28
|
output: {
|
|
27
29
|
// 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
|
|
28
30
|
globals,
|
|
31
|
+
// 在输出文件底部添加版本号打印
|
|
32
|
+
footer: versionBanner,
|
|
29
33
|
},
|
|
30
34
|
},
|
|
31
35
|
},
|