- 目录 web-to-pixso/ → web-to-ppt/ - 所有代码引用:PIXSO → WEB_TO_PPT, webToPixso → webToPPT - 数据格式:pixso-design-capture → web-to-ppt-capture - CSS 选择器:__web_to_pixso_ → __web_to_ppt_ - README 重写,移除 Pixso 相关描述 - docs/web-to-pixso-mapping.md → docs/web-to-ppt-mapping.md
30 lines
640 B
JavaScript
30 lines
640 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: './web-to-ppt/convert-browser.js',
|
|
output: {
|
|
filename: 'convert-bundle.js',
|
|
path: path.resolve(__dirname, 'web-to-ppt'),
|
|
library: { type: 'module' },
|
|
module: true
|
|
},
|
|
experiments: { outputModule: true },
|
|
resolve: {
|
|
fallback: {
|
|
fs: false,
|
|
path: false,
|
|
https: false,
|
|
http: false,
|
|
child_process: false,
|
|
stream: false,
|
|
buffer: require.resolve('buffer/'),
|
|
process: false
|
|
}
|
|
},
|
|
externals: {
|
|
// pptxgenjs 和 jszip 通过 import() 动态加载,不打包
|
|
},
|
|
mode: 'production',
|
|
target: 'web'
|
|
};
|