1 Star 1 Fork 0

@yck-web/more-sheet-excel

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.js 821 Bytes
一键复制 编辑 原始数据 按行查看 历史
YCK 提交于 2021-01-11 15:11 +08:00 . init
const path = require("path")
const webpack = require('webpack');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const base = {
mode: 'production',
entry: ["./src/main.js"],
output: {
path: path.resolve(__dirname, "dist"),
// filename: 'static/js/[name].js',
// publicPath: './',
filename: 'main.js',
library: 'MoreSheetExcel',
globalObject: 'this',
libraryExport: 'default',
libraryTarget: 'umd'
},
module: {
rules: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
}]
},
optimization: {
minimize: true,
minimizer: [
new UglifyJSPlugin()
]
},
// plugins: [new webpack.BannerPlugin({
// banner
// })]
}
const devBase = {
...base,
}
const proBase = {
...base,
}
module.exports = proBase
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/yck-web/more-sheet-excel.git
git@gitee.com:yck-web/more-sheet-excel.git
yck-web
more-sheet-excel
more-sheet-excel
master

搜索帮助