1 Star 0 Fork 6

杰克/voip-uni

forked from 野火IM/voip-uni 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
armXyz 提交于 2023-05-26 11:33 . 添加本地调试相关配置
const HtmlWebpackPlugin = require('html-webpack-plugin')
const HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin');
const {readFileSync} = require("fs");
module.exports = {
devServer: {
https: true,
// host: '0.0.0.0',
// port: 443,
// disableHostCheck: true,
// key: readFileSync('./cert/test.key'),
// cert: readFileSync('./cert/test.pem')
},
css: {
extract: false,
},
configureWebpack: {
// externals 目前没生效
externals: {
client: /\/client\//,
},
optimization: {
splitChunks: false // makes there only be 1 js file - leftover from earlier attempts but doesn't hurt
},
plugins: [
new HtmlWebpackPlugin({
filename: 'voip-dist.html', // the output file name that will be created
template: 'src/output-template.html', // this is important - a template file to use for insertion
inlineSource: '.(js|css)$' // embed all javascript and css inline
}),
new HtmlWebpackInlineSourcePlugin(HtmlWebpackPlugin)
]
},
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lonelyxmas/voip-uni.git
[email protected]:lonelyxmas/voip-uni.git
lonelyxmas
voip-uni
voip-uni
wx

搜索帮助