2021-11-21 16:14:46 +00:00
|
|
|
import { defineBuildConfig } from 'unbuild'
|
|
|
|
|
|
|
|
export default defineBuildConfig({
|
|
|
|
declaration: true,
|
|
|
|
entries: [
|
|
|
|
{
|
|
|
|
input: 'src/config/index',
|
|
|
|
outDir: 'schema',
|
|
|
|
name: 'config',
|
|
|
|
builder: 'untyped',
|
|
|
|
defaults: {
|
2022-02-25 19:11:01 +00:00
|
|
|
rootDir: '/<rootDir>/',
|
|
|
|
vite: {
|
|
|
|
base: '/'
|
|
|
|
}
|
2021-11-21 16:14:46 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
'src/index'
|
|
|
|
],
|
|
|
|
externals: [
|
|
|
|
// Type imports
|
|
|
|
'vue-meta',
|
2022-03-16 12:13:50 +00:00
|
|
|
'vue-router',
|
2021-11-21 16:14:46 +00:00
|
|
|
'vue',
|
|
|
|
'hookable',
|
2022-04-07 11:28:04 +00:00
|
|
|
'nitropack',
|
2021-11-21 16:14:46 +00:00
|
|
|
'webpack',
|
|
|
|
'pkg-types',
|
|
|
|
'webpack-bundle-analyzer',
|
|
|
|
'rollup-plugin-visualizer',
|
|
|
|
'vite',
|
2022-02-25 19:11:01 +00:00
|
|
|
'mini-css-extract-plugin',
|
|
|
|
'terser-webpack-plugin',
|
|
|
|
'css-minimizer-webpack-plugin',
|
|
|
|
'webpack-dev-middleware',
|
|
|
|
'webpack-hot-middleware',
|
|
|
|
'postcss',
|
2022-02-16 21:34:32 +00:00
|
|
|
'consola',
|
2022-02-28 16:11:46 +00:00
|
|
|
'ignore',
|
2021-11-21 16:14:46 +00:00
|
|
|
// Implicit
|
|
|
|
'@vue/compiler-core',
|
2021-12-21 13:57:26 +00:00
|
|
|
'@vue/shared'
|
2021-11-21 16:14:46 +00:00
|
|
|
]
|
|
|
|
})
|