Mrcdh技术博客 Mrcdh技术博客
首页
  • Html5
  • Javascript
  • Nodejs
  • Android
  • 微信公众号
  • 框架
  • Mysql
  • PHP
  • Python
  • Gulp
  • 其它
  • 网站
  • 资源
  • Vue资源
  • 分类
  • 标签
  • 归档
GitHub (opens new window)

Mrcdh

立志于全桟开发
首页
  • Html5
  • Javascript
  • Nodejs
  • Android
  • 微信公众号
  • 框架
  • Mysql
  • PHP
  • Python
  • Gulp
  • 其它
  • 网站
  • 资源
  • Vue资源
  • 分类
  • 标签
  • 归档
GitHub (opens new window)
  • Html5

  • JavaScript

  • Nodejs

  • express

  • electron

    • electron窗体操作
    • electron应用更新
    • 02.electron打包操作(electron-builder)
    • electron常见问题
      • 构建时出现 is not supported since 3.0 anymore. Please move 'build' into the development package.json
      • 生产环境下出现AxiosError
  • Android

  • 微信公众号

  • 框架

  • 其他

  • selenium

  • Sequelize

  • 大前端
  • electron
mrcdh
2022-06-10
目录

electron常见问题

# 构建时出现 is not supported since 3.0 anymore. Please move 'build' into the development package.json

把 build 从 package.json 中移除,在 vue.config.js 中写

module.exports = {
  runtimeCompiler: true,
  pluginOptions: {
    electronBuilder: {
      builderOptions: {
        // build配置在此处
        // options placed here will be merged with default configuration and passed to electron-builder
      }
    },
  },
};
1
2
3
4
5
6
7
8
9
10
11

# 生产环境下出现AxiosError

webPreferences: {
    webSecurity: false // 添加此属性
}
1
2
3
#electron
上次更新: 2022/06/10, 17:06:00
02.electron打包操作(electron-builder)
常用开发技巧

← 02.electron打包操作(electron-builder) 常用开发技巧→

最近更新
01
SpringBoot基本使用
07-25
02
pinia持久化插件pinia-plugin-persist的使用
07-25
03
h5操作媒体设备(音频和视频)
07-21
更多文章>
Theme by Vdoing | Copyright © 2020-2022 Mrcdh | 苏ICP备2020058908号-1
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式