代码拉取完成,页面将自动刷新
同步操作将从 Link/radishes 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
const webpack = require('webpack')
const pkg = require('./package.json')
const path = require('path')
const merge = require('lodash/merge')
const CI = process.env.CI !== 'action'
const md2vue = path.resolve(__dirname, 'packages/md2vue-loader/index.js')
module.exports = {
publicPath: '.',
pages: {
index: {
entry: 'src/main.ts',
template: 'public/index.html'
},
lyrics: {
entry: 'src/electron/pages/index.ts',
template: 'public/index.html'
}
},
devServer: {
progress: CI,
proxy: {
'/api': {
target: 'http://localhost:32768',
changeOrigin: true,
pathRewrite: {
'^/api': ''
}
}
}
},
css: {
loaderOptions: {
less: {
javascriptEnabled: true
}
}
},
configureWebpack: {
plugins: [
new webpack.ContextReplacementPlugin(/moment[/\\]locale$/, /zh-cn/),
new webpack.DefinePlugin({
VERSION: JSON.stringify(pkg.version),
GIT_URL: JSON.stringify(pkg.repository.url)
})
]
},
chainWebpack: config => {
config.when(process.env.ANALYZER === 'analyzer', config =>
config
.plugin('webpack-bundle-analyzer')
.use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin)
)
// https://github.com/vuejs/vue-cli/issues/1729#issuecomment-402217659
config.plugin('html-index').tap(args => {
args[0].title = 'radishes music'
return args
})
config.module
.rule('images')
.test(/.png|jpg|gif$/)
.use('url-loader')
config.module
.rule('fonts')
.test(/.otf|ttf$/)
.use('url-loader')
config.module
.rule('md')
.test(/\.md$/)
.use('md2vue-loader')
.loader(md2vue)
.tap(options => {
return merge({}, options, { html: true })
})
config.resolve.extensions.add('less').add('css')
config.resolve.alias.set('root', path.join(__dirname))
config.target(
process.env.VUE_APP_PLATFORM === 'electron' ? 'electron-renderer' : 'web'
)
},
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
mainProcessFile: 'src/electron/main.ts',
outputDir: 'dist-electron',
builderOptions: {
publish: [
{ provider: 'github', owner: 'Linkontoask', repo: 'radishes' }
],
artifactName: pkg.name + '.Setup.' + '${version}.${ext}',
extraFiles: [
{
from: 'public/service',
to: 'resources/public/service',
filter: ['**/*']
}
]
}
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。