build: lang="json5" 是默认值,不用写
This commit is contained in:
parent
855140a1af
commit
a95028f608
2
.vscode/vue3.code-snippets
vendored
2
.vscode/vue3.code-snippets
vendored
@ -20,7 +20,7 @@
|
|||||||
"scope": "vue",
|
"scope": "vue",
|
||||||
"prefix": "v3",
|
"prefix": "v3",
|
||||||
"body": [
|
"body": [
|
||||||
"<route lang=\"json5\" type=\"page\">",
|
"<route type=\"page\">",
|
||||||
"{",
|
"{",
|
||||||
" style: { navigationBarTitleText: '$1' },",
|
" style: { navigationBarTitleText: '$1' },",
|
||||||
"}",
|
"}",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!-- 使用 type="home" 属性设置首页,其他页面不需要设置,默认为page;推荐使用json5,更强大,且允许注释 -->
|
<!-- type=home|page,默认为page。这里使用 type="home" 申明为首页,其他页面不需要设置 -->
|
||||||
<route lang="json5" type="home">
|
<route type="home">
|
||||||
{
|
{
|
||||||
style: {
|
style: {
|
||||||
navigationStyle: 'custom',
|
navigationStyle: 'custom',
|
||||||
|
@ -50,8 +50,9 @@ export default ({ command, mode }) => {
|
|||||||
plugins: [
|
plugins: [
|
||||||
UniPages({
|
UniPages({
|
||||||
exclude: ['**/components/**/**.*'],
|
exclude: ['**/components/**/**.*'],
|
||||||
homePage: 'pages/index/index',
|
// routeBlockLang: 'json5',
|
||||||
subPackages: ['src/pages-sub'],
|
// homePage: 'pages/index/index',
|
||||||
|
subPackages: ['src/pages-sub'], // 是一个数组,可以设置多个
|
||||||
}),
|
}),
|
||||||
UniLayouts(),
|
UniLayouts(),
|
||||||
UniPlatform(),
|
UniPlatform(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user