1 Star 0 Fork 1

Augly / bigfileupload

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
webpack.config.js 687 Bytes
一键复制 编辑 原始数据 按行查看 历史
Augly 提交于 2020-07-13 14:19 . 修改webpack配置,此项目无需用到
/*
* @Descripttion :
* @version :
* @Author : zero
* @Date : 2020-07-11 13:14:22
* @LastEditors : zero
* @LastEditTime : 2020-07-13 14:18:03
*/
const path = require('path')
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const webpack = require('webpack')
module.exports = {
//文件入口
entry: {
index: './lib/index.js'
},
mode: 'production',
plugins: [new CleanWebpackPlugin()],
output: {
filename: '[name].js',
//动态导入
chunkFilename: '[name].bundle.js',
path: path.resolve(__dirname, 'dist'),
},
module: {
rules: [{ test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' }],
},
}
JavaScript
1
https://gitee.com/Q_Augly/bigfileupload.git
git@gitee.com:Q_Augly/bigfileupload.git
Q_Augly
bigfileupload
bigfileupload
master

搜索帮助