1 Star 0 Fork 0

andyliukun/simple-voice-changer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
prod.webpack.config.js 883 Bytes
一键复制 编辑 原始数据 按行查看 历史
const path = require("path");
const config = {
entry: "./src/index.js",
mode: "production",
output: {
path: path.resolve(__dirname, "dist"),
filename: "SimpleVoiceChanger.js",
library: "SimpleVoiceChanger",
libraryTarget: "umd",
globalObject: "typeof self !== \"undefined\" ? self : this"
},
externals: {
"jquery": "jQuery"
},
module: {
rules: [
{
test: /\.m?js$/,
exclude: /(node_modules)/,
use: {
loader: "babel-loader",
options: {
presets: ["@babel/preset-env"],
plugins: ["@babel/plugin-proposal-class-properties", "@babel/plugin-transform-runtime"]
}
}
},
{
test: /\.(png|jpg|gif|wav|mp3)$/i,
use: [
{
loader: 'url-loader'
},
],
}
]
}
};
module.exports = config;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/andyliukun/simple-voice-changer.git
git@gitee.com:andyliukun/simple-voice-changer.git
andyliukun
simple-voice-changer
simple-voice-changer
master

搜索帮助