【发布时间】:2020-05-29 08:23:50
【问题描述】:
我在关注这个帖子:multiple pages in Vue.js CLI
我很高兴现在有多个页面...但是,我怎样才能访问它?从 URL:http://localhost:8080/,我可以在最后设置我想要的所有内容,但它一直显示相同的页面。
这是我的 vue.config.js :
module.exports = {
lintOnSave: false,
pages: {
index: {
entry: './src/pages/Index.js',
template: './public/index.html',
filename: 'index.html',
title: 'Accueil',
chunks: [
'chunk-vendors',
'chunk-common',
'index'
]
},
test: {
entry: './src/pages/Test.js',
template: './public/index.html',
filename: 'index.html',
title: 'Test Page',
chunks: [
'chunk-vendors',
'chunk-common',
'index'
]
}
}
};
我重新加载了服务器,没有错误,一切看起来都很好。我想我只是在某个地方漏掉了一些东西。
【问题讨论】:
标签: javascript vue.js