1 Star 0 Fork 0

jhon_zhou/axios

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.js 657 Bytes
一键复制 编辑 原始数据 按行查看 历史
Daniel Lopretto 提交于 2020-12-16 03:25 . Update dev dependencies (#3401)
const TerserPlugin = require('terser-webpack-plugin');
var webpack = require('webpack');
var config = {};
function generateConfig(name) {
var compress = name.indexOf('min') > -1;
var config = {
entry: './index.js',
output: {
path: __dirname + '/dist/',
filename: name + '.js',
sourceMapFilename: name + '.map',
library: 'axios',
libraryTarget: 'umd'
},
node: {
process: false
},
devtool: 'source-map',
mode: compress ? 'production' : 'development'
};
return config;
}
['axios', 'axios.min'].forEach(function (key) {
config[key] = generateConfig(key);
});
module.exports = config;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jhon-zhou/axios.git
git@gitee.com:jhon-zhou/axios.git
jhon-zhou
axios
axios
master

搜索帮助