Skip to content

Commit

Permalink
build: set errorOnExist to false
Browse files Browse the repository at this point in the history
  • Loading branch information
cnblogs-dudu committed Dec 20, 2023
1 parent f5cf89f commit d3e3d8f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,27 @@ async function buildExtension() {
copyPlugin({
src: 'src/assets',
dest: `${OUT_DIR}/assets`,
errorOnExist: false,
}),
copyPlugin({
src: 'node_modules/@mapbox/node-pre-gyp',
dest: `${OUT_DIR}/node_modules/@mapbox/node-pre-gyp`,
errorOnExist: false,
}),
copyPlugin({
src: 'node_modules/sequelize',
dest: `${OUT_DIR}/node_modules/sequelize`,
errorOnExist: false,
}),
copyPlugin({
src: 'node_modules/@fluentui/font-icons-mdl2/fonts/',
dest: `${OUT_DIR}/assets/fonts`,
errorOnExist: false,
}),
copyPlugin({
src: 'src/wasm/rs_bg.wasm',
dest: `${OUT_DIR}/rs_bg.wasm`,
errorOnExist: false,
}),
],
}
Expand All @@ -72,6 +77,7 @@ async function buildUI(...apps) {
copyPlugin({
src: `${srcPath}${app}/index.html`,
dest: `${outPath}${app}/index.html`,
errorOnExist: false,
}),
],
}
Expand Down

0 comments on commit d3e3d8f

Please sign in to comment.