加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vue.config.js 1.71 KB
一键复制 编辑 原始数据 按行查看 历史
kong xiangrun 提交于 2022-11-01 17:10 . 调整
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
configureWebpack: {
resolve: {
fallback: {
path: require.resolve("path-browserify"),
crypto: require.resolve("crypto-browserify"),
stream: require.resolve("stream-browserify"),
"http": false,
"https": false,
"constants": false,
"os": false,
"child_process": false,
"nock":false,
"tls":false,
"zlib":false,
"dns":false
},
},
},
chainWebpack: config => {
config
.plugin('html')
.tap(args => {
args[0].title= '继续学习'
return args
})
},
transpileDependencies: true,
pluginOptions: { // 第三方插件配置
electronBuilder: {
customFileProtocol: "./",
nodeIntegration:true,
builderOptions: {
"buildDependenciesFromSource": true,
"nodeGypRebuild": false,
"npmRebuild": false,
"productName": "继续学习",
"appId": "krokodil.run",
"directories": {
"output": "build"
},
"extraResources": ["src/db/qdjxjy.db"],
"dmg": {
"contents": [
{
"x": 410,
"y": 150,
"type": "link",
"path": "/Applications"
},
{
"x": 130,
"y": 150,
"type": "file"
}
]
},
"mac": {
"icon": "public/icons/icon.icns"
},
"win": {
"icon": "public/icons/icon.ico",
"target": [
"portable"
]
},
"linux": {
"icon": "build/icons"
}
}
}
}
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化