1 Star 1 Fork 0

zhangx/writing-panel

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.js 599 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhangx 提交于 2022-08-30 15:32 . 修改打包编译选项
const path = require('path');
module.exports = {
entry: './src/index.ts',
mode: "production",
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
library: "writingPanel",
libraryTarget: "umd",
clean: true
},
resolve: {
// Add `.ts` and `.tsx` as a resolvable extension.
extensions: [".ts", ".tsx", ".js"]
},
module: {
rules: [
// all files with a `.ts` or `.tsx` extension will be handled by `ts-loader`
{test: /\.tsx?$/, loader: "ts-loader"}
]
}
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangx_study/writing-panel.git
git@gitee.com:zhangx_study/writing-panel.git
zhangx_study
writing-panel
writing-panel
main

搜索帮助