Skip to content

Commit

Permalink
webpack打包说明
Browse files Browse the repository at this point in the history
  • Loading branch information
throw-out authored Jun 12, 2021
1 parent 90f567f commit f01df76
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions doc/unity/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,10 @@ require('source-map-support').install();
注: source-map-support是nodejs模块, 需要自定义path和fs模块.
## webpack打包
webpack将自定义模块加入external module
``` json
将自定义模块加入external module
``` js
module.exports = {
mode: "development",
entry: {
main: path.resolve(__dirname, "./src/main.ts"),
},
output: {
filename: "[name].bundle.js",
path: path.resolve(__dirname, "./dist")
},
// other...
/** 忽略编辑的第三方库 */
externals: {
csharp: "commonjs2 csharp",
Expand Down

0 comments on commit f01df76

Please sign in to comment.