1 Star 10 Fork 4

滔滔清风 / FFBox

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 2.15 KB
一键复制 编辑 原始数据 按行查看 历史
滔滔清风 提交于 2021-10-07 02:24 . 实现文件上传功能
// var webpack = require('webpack');
module.exports = {
// configureWebpack: (config) => {
// config.plugins.push(new webpack.DefinePlugin({ "global.GENTLY": false }));
// config.node.__dirname = true;
// console.log(config);
// // plugins: [
// // new webpack.DefinePlugin({ "global.GENTLY": false })
// // ]
// },
// chainWebpack: (config) => {
// // console.log(config);
// },
pluginOptions: {
electronBuilder: {
// chainWebpackMainProcess: (config) => {
// // Chain webpack config for electron main process only
// console.log(config);
// },
/*
chainWebpackRendererProcess: (config) => {
// Chain webpack config for electron renderer process only (won't be applied to web builds)
console.log(config);
config.target = 'electron-renderer';
},
*/
externals: [
'formidable', 'koa-body'
],
builderOptions: {
appId: 'ttqftech.ffbox',
productName: 'FFBox',
electronDownload: {
mirror: 'https://npm.taobao.org/mirrors/electron/'
},
mac: {
icon: '512.ico',
target: 'dmg'
},
win: {
icon: 'icon.ico',
target: 'msi'
}
},
mainProcessFile: 'src/main.ts', // Use this to change the entry point of your app's main process
disableMainProcessTypescript: false, // Manually disable typescript plugin for main process. Enable if you want to use regular js for the main process (src/background.js by default).
rendererProcessFile: 'src/electron/entry.js', // Use this to change the entry point of your app's render process. default src/[main|index].[js|ts]
}
},
pages: {
index: {
entry: 'src/electron/entry.js',
template: 'public/electron.html',
filename: 'electron.html'
}
}
}
TypeScript
1
https://gitee.com/ttqf/FFBox.git
git@gitee.com:ttqf/FFBox.git
ttqf
FFBox
FFBox
3.0+

搜索帮助