create-lve 0.6.2 → 0.6.3
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/config.js +3 -1
- package/package.json +1 -1
package/config.js
CHANGED
|
@@ -276,7 +276,9 @@ async function applyProjectTransform(ctx) {
|
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
let viteContent = await fs.readFile(paths.vite, 'utf-8')
|
|
279
|
-
viteContent
|
|
279
|
+
if (!viteContent.includes(strategy.pluginImport.trim())) {
|
|
280
|
+
viteContent = strategy.pluginImport + viteContent
|
|
281
|
+
}
|
|
280
282
|
viteContent = viteContent.replace('/* VITE_PLUS_PLUGINS */', strategy.pluginCode)
|
|
281
283
|
await fs.writeFile(paths.vite, viteContent)
|
|
282
284
|
|