1 Star 0 Fork 0

酱酱酱酱油鲜 / bolg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
const path = require('path')
function resolve (dir) {
return path.join(__dirname, dir)
}
const entrys = ['home', 'about', 'archives', 'article', 'category', 'tags']
module.exports = {
pages: {
admin: {
// 入口js的路径
entry: './webapp/admin',
// 页面模板路径
template: './static/admin.html',
filename: 'jyx-admin/admin.html'
}
},
chainWebpack: (config) => {
entrys.forEach((entry)=>{
config.entry(entry).add(`./webapp/${entry}.js`).end()
})
config.output.filename('js/[name].js')
// config.resolve.alias.set('@view', resolve('src/view'))
config.resolve.alias.set('@', resolve('webapp'))
// config.optimization.runtimeChunk({name: 'runtime'})
// vendors: {
// name: `chunk-vendors`,
// test: /[\\/]node_modules[\\/]/,
// priority: -10,
// chunks: 'initial'
// },
// common: {
// name: `chunk-common`,
// minChunks: 2,
// priority: -20,
// chunks: 'initial',
// reuseExistingChunk: true
// }
config.optimization.splitChunks({cacheGroups: {}})
},
lintOnSave: undefined,
baseUrl: undefined,
outputDir: undefined,
assetsDir: undefined,
runtimeCompiler: undefined,
productionSourceMap: false,
parallel: undefined,
filenameHashing: false
}
1
https://gitee.com/jjjjyx/bolg.git
git@gitee.com:jjjjyx/bolg.git
jjjjyx
bolg
bolg
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891