4 Star 7 Fork 6

Jeffrey-Wang / modelbox-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.js 677 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jeffrey-Wang 提交于 2020-11-06 00:12 . feat: add dev and prod config
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
entry: './index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'modelbox-sdk.js'
},
module: {
rules: [
{
test:/\.js$/,
exclude:/(node_modules|bower_components)/,//排除掉node_module目录
use:{
loader:'babel-loader',
}
}
]
},
// optimization: {
// minimizer: [
// new UglifyJsPlugin({
// test: /\.js(\?.*)?$/i,
// }),
// ],
// },
// mode: "production",
mode: "development"
};
JavaScript
1
https://gitee.com/wangerzi/modelbox-sdk.git
git@gitee.com:wangerzi/modelbox-sdk.git
wangerzi
modelbox-sdk
modelbox-sdk
main

搜索帮助