chore: 忽略vue/macros等模块;删除lib模式的无效文件
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
* @Author: zhaojinfeng 121016171@qq.com
|
* @Author: zhaojinfeng 121016171@qq.com
|
||||||
* @Date: 2023-06-19 10:38:07
|
* @Date: 2023-06-19 10:38:07
|
||||||
* @LastEditors: peerless_hero peerless_hero@outlook.com
|
* @LastEditors: peerless_hero peerless_hero@outlook.com
|
||||||
* @LastEditTime: 2023-08-30 15:34:25
|
* @LastEditTime: 2023-08-30 16:44:17
|
||||||
* @FilePath: \vue3\bin\build.ts
|
* @FilePath: \vue3\bin\build.ts
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
@ -25,7 +25,7 @@ async function buildAComponent(name: string) {
|
|||||||
fileName: 'index',
|
fileName: 'index',
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: ['vue', '@vueuse/core', /\.sass/, /element-plus/],
|
external: ['vue', 'vue/macros', 'vue-router', '@vueuse/core', /\.sass/, /element-plus/],
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
dir: `es/${name}`,
|
dir: `es/${name}`,
|
||||||
@ -43,7 +43,7 @@ async function buildAComponent(name: string) {
|
|||||||
},
|
},
|
||||||
plugins: [Unocss()],
|
plugins: [Unocss()],
|
||||||
})
|
})
|
||||||
await Promise.all([remove(`es/${name}/index2.mjs`), remove(`es/${name}/unocss.mjs`), remove(`lib/${name}/index2.mjs`), remove(`lib/${name}/unocss.mjs`)])
|
await Promise.all([remove(`es/${name}/index2.mjs`), remove(`es/${name}/unocss.mjs`), remove(`lib/${name}/unocss.js`)])
|
||||||
consola.success(`${name}构建成功!`)
|
consola.success(`${name}构建成功!`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user