mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
49 lines
922 B
TypeScript
49 lines
922 B
TypeScript
import { defineBuildConfig } from 'unbuild'
|
|
|
|
export default defineBuildConfig({
|
|
declaration: true,
|
|
entries: [
|
|
{
|
|
input: 'src/config/index',
|
|
outDir: 'schema',
|
|
name: 'config',
|
|
builder: 'untyped',
|
|
defaults: {
|
|
rootDir: '/<rootDir>/',
|
|
vite: {
|
|
base: '/'
|
|
}
|
|
}
|
|
},
|
|
'src/index'
|
|
],
|
|
externals: [
|
|
// Type imports
|
|
'vue-meta',
|
|
'vue-router',
|
|
'vue-bundle-renderer',
|
|
'vue',
|
|
'hookable',
|
|
'nitropack',
|
|
'webpack',
|
|
'pkg-types',
|
|
'webpack-bundle-analyzer',
|
|
'rollup-plugin-visualizer',
|
|
'vite',
|
|
'@vitejs/plugin-vue',
|
|
'mini-css-extract-plugin',
|
|
'terser-webpack-plugin',
|
|
'css-minimizer-webpack-plugin',
|
|
'webpack-dev-middleware',
|
|
'h3',
|
|
'webpack-hot-middleware',
|
|
'postcss',
|
|
'consola',
|
|
'ignore',
|
|
// Implicit
|
|
'@vue/compiler-core',
|
|
'@vue/shared',
|
|
'untyped'
|
|
]
|
|
})
|