Commit c36db4aa authored by 尚斌杰's avatar 尚斌杰

update

parent 64692688
......@@ -14,7 +14,10 @@ npm run build [page1+page2] or npm run build [page1]
//package.json
{
...,
"commonPath": "../common.js",
"vueCliBuildConfig": {
"commonPath": "../common.js",
"exclude":["page1" , "page2"]
},
...,
}
```
......@@ -26,7 +26,7 @@ const allPages = []
const dirs = fs.readdirSync(path.resolve('./src/pages/')).filter(page=>(page!=='.DS_Store' && excludePages.indexOf(page)<0))
for (let index = 0; index < dirs.length; index++) {
const dirName = dirs[index];
if(fs.existsSync(`${process.cwd()}/src/pages/${dirName}/index.ts`) && dirName !== 'common'){
if(fs.existsSync(`${process.cwd()}/src/pages/${dirName}/index.ts`)){
allPages.push(dirName)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment