vite#BuildOptions TypeScript Examples
The following examples show how to use
vite#BuildOptions.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: build.ts From ant-simple-draw with MIT License | 6 votes |
build: BuildOptions = {
terserOptions: {
compress: {
keep_infinity: true,
drop_console: VITE_APP_CONSOLE,
drop_debugger: VITE_APP_DEBUGGER,
},
},
outDir: 'dist', // 指定输出路径目录
assetsDir: 'assets', // 指定打包生成静态资源的存放路径目录
sourcemap: VITE_APP_SOURCEMAP, // 构建后是否生成 source map文件
}