立山新库(北2)解冻库

LiuShu_0203 f9267c02f8 字段修改 3 mēneši atpakaļ
.husky 3e87842cee 代码提交 3 mēneši atpakaļ
mock 3e87842cee 代码提交 3 mēneši atpakaļ
src f9267c02f8 字段修改 3 mēneši atpakaļ
test 3e87842cee 代码提交 3 mēneši atpakaļ
types 3e87842cee 代码提交 3 mēneši atpakaļ
.commitlintrc.js 3e87842cee 代码提交 3 mēneši atpakaļ
.env.development 3e87842cee 代码提交 3 mēneši atpakaļ
.env.production 3e87842cee 代码提交 3 mēneši atpakaļ
.eslintignore 3e87842cee 代码提交 3 mēneši atpakaļ
.eslintrc-auto-import.json 3e87842cee 代码提交 3 mēneši atpakaļ
.eslintrc.js 3e87842cee 代码提交 3 mēneši atpakaļ
.gitignore 3e87842cee 代码提交 3 mēneši atpakaļ
.prettierignore 3e87842cee 代码提交 3 mēneši atpakaļ
.prettierrc.js 3e87842cee 代码提交 3 mēneši atpakaļ
.stylelintignore 3e87842cee 代码提交 3 mēneši atpakaļ
.stylelintrc.js 3e87842cee 代码提交 3 mēneši atpakaļ
README.md 04195f1ec2 first commit 3 mēneši atpakaļ
index.html 3e87842cee 代码提交 3 mēneši atpakaļ
package-lock.json 3e87842cee 代码提交 3 mēneši atpakaļ
package.json 3e87842cee 代码提交 3 mēneši atpakaļ
pnpm-lock.yaml 3e87842cee 代码提交 3 mēneši atpakaļ
stats.html 3e87842cee 代码提交 3 mēneši atpakaļ
tsconfig.json 3e87842cee 代码提交 3 mēneši atpakaļ
vite.config.ts 3e87842cee 代码提交 3 mēneši atpakaļ
yarn.lock 3e87842cee 代码提交 3 mēneši atpakaļ

README.md

rollup里面的配置 // html2canvas 只有极少数的页面使用了 所以要单独处理一下 第三方库分类打包 if (id.includes('html2canvas')) { return 'html2canvas'; }

// 打包入口文件 根目录下的 index.html // 也就是项目从哪个文件开始打包 input: { index: fileURLToPath(new URL('./index.html', import.meta.url)) }, // external: ['moment', 'video.js', 'jspdf', 'xlsx', 'echart'], // plugins: [visualizer({ open: true })], //globals treeshake: { preset: 'recommended', manualPureFunctions: ['console.log'] }, // experimentalLogSideEffects: true, output: { experimentalMinChunkSize: 20 * 1024 // manualChunks: (id: string) => { // html2canvas 只有极少数的页面使用了 所以要单独处理一下 第三方库分类打包 if (id.includes('html2canvas')) { return 'html2canvas'; } // if (id.includes('node_modules')) { // return 'vendor'; // } // return 'index'; // } } // experimentalLogSideEffects: true, treeshake: { preset: 'recommended', manualPureFunctions: ['console.log'] },