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.
Files changed (2) hide show
  1. package/config.js +3 -1
  2. 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 = strategy.pluginImport + 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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-lve",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "bin": {
5
5
  "create-lve": "index.js"
6
6
  },