2.8.2 • Published 5 months ago
@deot/dev-builder v2.8.2
@deot/dev-builder
打包
- 优先执行
scripts
下的build
和build:types
,如果声明build
,打包由用户管理,build:types
,类型编译由用户管理 - 可被打包的文件匹配:
src/index\.(.*)\.?(j|t|s?cs)s
自定义配置
提供环境变量BUILD_OPTIONS
interface BUILD_OPTIONS {
packageFolderName?: string;
workspace?: string;
watch: boolean;
coverage: boolean;
}
根目录创建build.config.ts
, 可以选择configShared
合并或单独基于BUILD_OPTIONS
配置
也可以是
z.build.config.ts
, 前缀主要是置底
import { mergeConfig, defineConfig } from 'vite';
import type { UserConfig } from 'vite';
import configShared from './node_modules/@deot/dev-builder/shared.config'; // 这样调用时才会被编译
export default mergeConfig(
configShared,
defineConfig({
// custom config
plugins: [
vue(),
react()
]
}) as UserConfig
);
取build.config.ts
, 是为了方便从build
转其他测试工具时,可以不改变文件名
2.8.2
5 months ago
2.8.1
5 months ago
2.8.0
5 months ago
2.7.1
6 months ago
2.7.0
6 months ago
2.3.0
10 months ago
2.2.1
11 months ago
2.2.0
11 months ago
2.5.0
9 months ago
2.3.2
9 months ago
2.2.3
10 months ago
2.4.0
9 months ago
2.3.1
10 months ago
2.2.2
10 months ago
2.6.1
7 months ago
2.5.2
9 months ago
2.6.0
7 months ago
2.5.1
9 months ago
2.3.3
9 months ago
2.5.4
9 months ago
2.6.2
6 months ago
2.5.3
9 months ago
2.1.0
11 months ago
2.0.4
11 months ago
2.0.3
11 months ago
2.0.2
11 months ago
2.0.1
11 months ago
2.0.0
11 months ago
1.1.2
1 year ago
1.1.1
1 year ago
1.1.0
1 year ago