CADViewComponent/config/webpack.umd.ts

22 lines
500 B
TypeScript
Raw Normal View History

2018-08-17 17:39:11 +08:00
import * as webpack from 'webpack';
2018-08-17 21:26:32 +08:00
import * as merge from 'webpack-merge';
import common from './webpack.common';
import * as path from 'path';
2018-08-17 17:39:11 +08:00
2018-08-17 21:26:32 +08:00
const config: webpack.Configuration = merge(
common,
{
mode: "production",
2018-10-12 17:02:10 +08:00
entry: "./src/index.ts",
2018-08-17 21:26:32 +08:00
//输出设置
output: {
filename: "cad.js",
2018-10-12 17:02:10 +08:00
path: path.resolve(__dirname, './umd'),
2018-08-17 21:26:32 +08:00
library: "cad",
libraryTarget: "umd"
},
}
);
2018-08-17 17:39:11 +08:00
export default config;