How to keep the behavior the same in v4 after upgrading from v3? #252
-
|
After upgrading from v3, the plugin no longer works. Here is the config: const cesiumSource = "./node_modules/cesium/Build/Cesium"
const cesiumBaseUrl = './assets'
export default defineConfig {
define: {
CESIUM_BASE_URL: JSON.stringify(cesiumBaseUrl),
},
plugin: [
viteStaticCopy({
targets: [
{ src: `${cesiumSource}/ThirdParty`, dest: cesiumBaseUrl },
{ src: `${cesiumSource}/Workers`, dest: cesiumBaseUrl },
{ src: `${cesiumSource}/Assets`, dest: cesiumBaseUrl },
{ src: `${cesiumSource}/Widgets`, dest: cesiumBaseUrl },
],
}),
]
}In v4, the way the Is there any solution to solve these? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I guess |
Beta Was this translation helpful? Give feedback.
I guess
rename.stripBaseis what you want.