@mpxjs/webpack-plugin 2.10.7-beta.6 → 2.10.7-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -113,14 +113,14 @@ module.exports = function (jsonContent, {
113
113
  }
114
114
 
115
115
  if (ctorType === 'page') {
116
- // const keysToExtract = ['navigationStyle']
116
+ const keysToExtract = ['navigationStyle', 'navigationBarTitleText', 'navigationBarTextStyle', 'navigationBarBackgroundColor']
117
117
  const configObj = {}
118
118
  // 暂时先不注入数据,后续如需要使用再用
119
- // keysToExtract.forEach(key => {
120
- // if (jsonObj[key]) {
121
- // configObj[key] = jsonObj[key]
122
- // }
123
- // })
119
+ keysToExtract.forEach(key => {
120
+ if (jsonObj[key]) {
121
+ configObj[key] = jsonObj[key]
122
+ }
123
+ })
124
124
  loaderContext._module.addPresentationalDependency(new RecordPageConfigsMapDependency(parseRequest(loaderContext.resource).resourcePath, configObj))
125
125
  }
126
126
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.10.7-beta.6",
3
+ "version": "2.10.7-beta.7",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"