This commit is contained in:
2024-01-17 17:31:41 +08:00
parent 84190ed9f1
commit fb9e920c15
35 changed files with 3003 additions and 1304 deletions

View File

@@ -56,6 +56,36 @@ const libraries = [
})
]
},
{
clearScreen: false,
css: {
postcss: {
plugins: [postcssPresetEnv()]
}
},
build: {
lib: {
entry: './lib/element.js',
name: 'lib-element',
formats: ['umd'],
fileName: (_format, name) => `${name}.min.js`
},
rollupOptions: {
output: {
assetFileNames: info => info.name === 'style.css' ? 'element.min.css' : info.name
}
},
sourcemap: true,
outDir: '../../../../IronIntel/Contractor2.0/Contractor/Site/js/lib',
emptyOutDir: false
},
plugins: [
viteExternalsPlugin({
'../ui': 'lib-ui',
'../utility': 'lib-utility'
})
]
},
{
clearScreen: false,
build: {