1 Star 0 Fork 2

章纪成/vue-ueditor-wrap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.prod.js 712 Bytes
一键复制 编辑 原始数据 按行查看 历史
const path = require('path')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
module.exports = {
entry: './src/components/vue-ueditor-wrap.vue',
output: {
path: path.resolve(__dirname, 'lib'),
filename: 'vue-ueditor-wrap.min.js',
library: 'VueUeditorWrap',
libraryTarget: 'umd',
libraryExport: 'default'
},
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader'
},
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
}
]
},
plugins: [
new UglifyJsPlugin({
uglifyOptions: {
compress: {
warnings: false
}
},
parallel: true
})
]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/13399607/vue-ueditor-wrap.git
[email protected]:13399607/vue-ueditor-wrap.git
13399607
vue-ueditor-wrap
vue-ueditor-wrap
master

搜索帮助