feat: 🎸 新增权限管理及相关示例文档

This commit is contained in:
chenkl
2021-01-18 09:35:18 +08:00
parent 38f521174b
commit 32b6583099
5 changed files with 14289 additions and 49 deletions

View File

@@ -37,6 +37,8 @@ glob.sync('./src/pages/**/main.ts').forEach((entry) => {
projectName ? entryPages[projectName] = pages[projectName] : entryPages = pages
const Timestamp = new Date().getTime()
const vueConfig = {
pages: entryPages,
publicPath: './',
@@ -165,14 +167,21 @@ const vueConfig = {
})
})
},
configureWebpack: () => {
process.env.NODE_ENV === 'development' ? 'source-map' : undefined
configureWebpack: {
output: {
filename: `js/[name].[hash].${Timestamp}.js`,
chunkFilename: `js/[name].[hash].${Timestamp}.js`
}
},
css: {
loaderOptions: {
less: {
javascriptEnabled: true
}
},
extract: {
filename: `css/[name].[hash].${Timestamp}.css`,
chunkFilename: `css/[name].[hash].${Timestamp}.css`
}
},
// 跨域代理