1 Star 0 Fork 0

13434979720 / mk-view-apicloud

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
umd.webpack.config.js 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
13434979720 提交于 2020-05-09 15:54 . init
const path = require('path');
module.exports = {
mode: 'production',
entry: './src/index.ts',
output: {
filename: 'bundle.umd.js',
path: path.resolve(__dirname, 'example/js'),
libraryTarget: "umd",
globalObject: "this",
library: "MK"
},
module: {
rules: [
{
test: /\.ts$/,
exclude: /node_modules/,
loader: "babel-loader",
options: {
presets: [
[
"@babel/preset-env",
{
useBuiltIns: "usage",
modules: false
}
]
],
plugins: [
[
require("@babel/plugin-transform-runtime"),
{
corejs: false,
helpers: true,
regenerator: false,
useESModules: false,
}
]
],
comments: false
}
},
{
test: /\.ts$/,
use: 'ts-loader',
exclude: /node_modules/
}
]
},
resolve: {
extensions: ['.tsx', '.ts', '.js']
}
}
TypeScript
1
https://gitee.com/hxyl/mk-view-apicloud.git
git@gitee.com:hxyl/mk-view-apicloud.git
hxyl
mk-view-apicloud
mk-view-apicloud
master

搜索帮助