diff --git a/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/index.js b/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/index.js
index 0ad8ea00..6ee2a43e 100644
--- a/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/index.js
+++ b/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/index.js
@@ -82,6 +82,7 @@ export default async function getConfig({
// --------------- cache -----------
webpackConfig.cache({
type: 'filesystem',
+ version: require('../../../../package.json').version,
cacheDirectory: join(cwd, '.cache/webpack')
});
diff --git a/packages/fes-template/.fes.js b/packages/fes-template/.fes.js
index 585a5af4..5f4f505b 100644
--- a/packages/fes-template/.fes.js
+++ b/packages/fes-template/.fes.js
@@ -1,7 +1,7 @@
// .fes.js 只负责管理编译时配置,只能使用plain Object
export default {
- // exportStatic: {},
+ // exportStatic: {},
define: {
__DEV__: false
},
@@ -15,7 +15,7 @@ export default {
access: {
roles: {
admin: ['*'],
- menuTest: ['/','/menuTest']
+ menuTest: ['/', '/menuTest']
}
},
request: {
@@ -54,18 +54,21 @@ export default {
path: 'https://www.baidu.com'
},
{
- title: '菜单权限测试',
+ name: 'mock'
+ },
+ {
+ title: '菜单权限测试',
children: [
{
title: '子菜单',
- path: '/menuTest',
+ path: '/menuTest'
},
{
title: '子菜单a',
path: '/menuTest/a'
- },
+ }
]
- },
+ },
{
name: 'cssModule'
}
diff --git a/packages/fes-template/src/locales/en-US.js b/packages/fes-template/src/locales/en-US.js
index 0d39017e..e3efe619 100644
--- a/packages/fes-template/src/locales/en-US.js
+++ b/packages/fes-template/src/locales/en-US.js
@@ -3,5 +3,6 @@ export default {
home: 'home',
store: 'store',
editor: 'editor',
- externalLink: 'externalLink'
+ externalLink: 'externalLink',
+ mock: 'mock'
};
diff --git a/packages/fes-template/src/locales/zh-CN.js b/packages/fes-template/src/locales/zh-CN.js
index be54ef9f..55fc4666 100644
--- a/packages/fes-template/src/locales/zh-CN.js
+++ b/packages/fes-template/src/locales/zh-CN.js
@@ -3,5 +3,6 @@ export default {
home: '首页',
store: '状态管理',
editor: '编辑器',
- externalLink: '外部链接'
+ externalLink: '外部链接',
+ mock: '代理'
};
diff --git a/packages/fes-template/src/pages/mock.vue b/packages/fes-template/src/pages/mock.vue
new file mode 100644
index 00000000..0e48ff61
--- /dev/null
+++ b/packages/fes-template/src/pages/mock.vue
@@ -0,0 +1,49 @@
+
+
+ mock and proxy
+
+
+
+{
+ "name": "mock",
+ "title": "$mock"
+}
+
+