代码拉取完成,页面将自动刷新
同步操作将从 OIM即时通讯/oim-e 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
const path = require('path');
function resolve(dir) {
return path.join(__dirname, dir);
}
module.exports = {
chainWebpack: (config) => {
// @scss是你取的静态资源路径别名
config.resolve.alias.set('@', resolve('src'));
config.resolve.alias.set('@scss', resolve('src/styles'));
// 若需要配置多个别名,后续紧跟着设置set即可
/* config.resolve.alias.set('@scss', resolve('src/static/scss')).set('@',resolve('src'))
*/
},
configureWebpack: {
module: {
rules: [{
test: /\.less$/,
use: [{
loader: "less-loader", options: {
lessOptions: {
javascriptEnabled: true
}
},
}],
}],
},
// Configuration applied to all builds
},
pluginOptions: {
electronBuilder: {
builderOptions: {
productName: 'OIM-E',
appId: 'com.oimchat.oim',
copyright: 'onlyxiahui',
dmg: {
contents: [
{
x: 410,
y: 150,
type: 'link',
path: '/Applications'
},
{
x: 130,
y: 150,
type: 'file'
}
]
},
mac: {
icon: 'build/icons/icon.icns'
},
win: {
icon: 'build/icons/icon.ico',
target: [
{
target: 'nsis',
arch: [
'ia32'
]
}
]
},
linux: {
icon: 'build/icons'
},
directories: {
output: 'dist_electron',
buildResources: 'build',
app: 'dist_electron/bundled'
},
files: [
'**/*'
],
extraResources: [
{
from: './public/assets',
to: './app/assets'
},
{
from: './public/lib',
to: './app/lib'
}
],
nsis: {
oneClick: false,
allowToChangeInstallationDirectory: true,
createDesktopShortcut: true,
createStartMenuShortcut: true
}
}
},
quasar: {
importStrategy: 'kebab',
rtlSupport: true
}
},
transpileDependencies: [
'quasar'
]
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。