2 Star 1 Fork 1

Lin / vue-web-skeleton

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vue.config.js 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
qulin 提交于 2022-08-11 09:28 . 微调
// 打包图形化分析工具,正式打包前注释掉
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer").BundleAnalyzerPlugin;
// 自动复制文件插件
const CopyWebpackPlugin = require('copy-webpack-plugin')
module.exports = {
// 打包图形化分析工具,正式打包前注释掉
chainWebpack: config => {
config
.plugin('webpack-bundle-analyzer')
.use(BundleAnalyzerPlugin)
},
// easyPlayer 打包自动拷贝资源配置文件
configureWebpack: {
plugins: [
new CopyWebpackPlugin([
{
from: 'node_modules/@easydarwin/easyplayer/dist/component/EasyPlayer.wasm',
to: './libs/EasyPlayer/'
},
{
from: 'node_modules/@easydarwin/easyplayer/dist/component/crossdomain.xml',
to: './libs/EasyPlayer/'
},
{
from: 'node_modules/@easydarwin/easyplayer/dist/component/EasyPlayer-lib.min.js',
to: './libs/EasyPlayer/'
},
{
from: 'node_modules/@easydarwin/easywasmplayer/EasyWasmPlayer.js',
to: './'
},
{
from: 'node_modules/@easydarwin/easywasmplayer/libDecoder.wasm',
to: './'
}
])
]
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Qu_Lin/vue-web-skeleton.git
git@gitee.com:Qu_Lin/vue-web-skeleton.git
Qu_Lin
vue-web-skeleton
vue-web-skeleton
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891