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',
|
2022-08-16 11:19:39 +00:00
|
|
|
'vue-bundle-renderer',
|
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-07-29 10:57:45 +00:00
|
|
|
'@vitejs/plugin-vue',
|
2022-02-25 19:11:01 +00:00
|
|
|
'mini-css-extract-plugin',
|
|
|
|
'terser-webpack-plugin',
|
|
|
|
'css-minimizer-webpack-plugin',
|
|
|
|
'webpack-dev-middleware',
|
2022-09-07 08:35:21 +00:00
|
|
|
'h3',
|
2022-02-25 19:11:01 +00:00
|
|
|
'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',
|
2022-08-26 15:47:29 +00:00
|
|
|
'@vue/shared',
|
|
|
|
'untyped'
|
2021-11-21 16:14:46 +00:00
|
|
|
]
|
|
|
|
})
|