前端大屏

LiuShu_0203 f13899c3ce 代码提交 10 ماه پیش
.husky a71cd37125 大屏代码上传 10 ماه پیش
mock a71cd37125 大屏代码上传 10 ماه پیش
src affee678d5 代码提交 10 ماه پیش
test a71cd37125 大屏代码上传 10 ماه پیش
types a71cd37125 大屏代码上传 10 ماه پیش
.commitlintrc.js a71cd37125 大屏代码上传 10 ماه پیش
.env.development a71cd37125 大屏代码上传 10 ماه پیش
.env.production a71cd37125 大屏代码上传 10 ماه پیش
.eslintignore a71cd37125 大屏代码上传 10 ماه پیش
.eslintrc-auto-import.json a71cd37125 大屏代码上传 10 ماه پیش
.eslintrc.js a71cd37125 大屏代码上传 10 ماه پیش
.gitignore a71cd37125 大屏代码上传 10 ماه پیش
.prettierignore a71cd37125 大屏代码上传 10 ماه پیش
.prettierrc.js a71cd37125 大屏代码上传 10 ماه پیش
.stylelintignore a71cd37125 大屏代码上传 10 ماه پیش
.stylelintrc.js a71cd37125 大屏代码上传 10 ماه پیش
README.md 578eebb7e8 大屏代码提交 10 ماه پیش
index.html a71cd37125 大屏代码上传 10 ماه پیش
package-lock.json a71cd37125 大屏代码上传 10 ماه پیش
package.json a71cd37125 大屏代码上传 10 ماه پیش
pnpm-lock.yaml a71cd37125 大屏代码上传 10 ماه پیش
stats.html a71cd37125 大屏代码上传 10 ماه پیش
tsconfig.json a71cd37125 大屏代码上传 10 ماه پیش
vite.config.ts f13899c3ce 代码提交 10 ماه پیش
yarn.lock c04521d544 xxx 10 ماه پیش

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'] },