更新配置,能够简单运行实例.
This commit is contained in:
@@ -7,11 +7,11 @@ const config: webpack.Configuration = merge(
|
||||
common,
|
||||
{
|
||||
mode: "production",
|
||||
entry: "../src/index.ts",
|
||||
entry: "./src/index.ts",
|
||||
//输出设置
|
||||
output: {
|
||||
filename: "cad.js",
|
||||
path: path.resolve(__dirname, '../umd'),
|
||||
path: path.resolve(__dirname, './umd'),
|
||||
library: "cad",
|
||||
libraryTarget: "umd"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user