Skip to content

Commit

Permalink
feat: add page-meta.vue,navigation-bar.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Dec 25, 2019
1 parent 341bb35 commit 5a76199
Show file tree
Hide file tree
Showing 28 changed files with 449 additions and 46 deletions.
1 change: 1 addition & 0 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ service.run('build', {
target: 'lib',
formats: process.env.UNI_WATCH === 'true' ? 'umd' : 'umd-min',
entry,
'inline-vue': !!process.env.UNI_VIEW,
clean: !process.env.UNI_VIEW,
mode: process.env.NODE_ENV
}).then(function () {
Expand Down
1 change: 0 additions & 1 deletion build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ if (process.env.UNI_VIEW) { // 方便调试
}
module.exports = function configureWebpack (config) {
if (process.env.UNI_VIEW === 'true') {
config.externals && (delete config.externals['vue'])
alias['vue$'] = resolve('packages/vue-cli-plugin-uni/packages/h5-vue/dist/vue.runtime.esm.js')
}

Expand Down
3 changes: 2 additions & 1 deletion lib/apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ const third = [
'upx2px',
'restoreGlobal',
'getSubNVueById',
'getCurrentSubNVue'
'getCurrentSubNVue',
'setPageMeta'
]

const apis = [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"build:service:legacy": "npm run lint && rollup -c build/rollup.config.service.js",
"lint": "eslint --fix --config package.json --ext .js --ext .vue --ignore-path .eslintignore build src",
"lint:cli": "eslint --fix --config package.json --ignore-path .eslintignore packages/uni-cli-shared packages/uni-template-compiler \"packages/vue-cli-*/**/*.js\" \"packages/webpack-uni-*/**/*.js\"",
"lint:cli": "eslint --fix --config package.json --ext .js --ext .vue --ignore-path .eslintignore packages/uni-cli-shared packages/uni-template-compiler \"packages/vue-cli-*/**/*.js\" \"packages/webpack-uni-*/**/*.js\"",
"dev:h5": "npm run lint && cross-env NODE_ENV=production UNI_WATCH=true UNI_PLATFORM=h5 node build/build.js",
"build:h5": "npm run lint && cross-env NODE_ENV=production UNI_WATCH=false UNI_PLATFORM=h5 node build/build.js",
"build:h5:ui": "cross-env NODE_ENV=production UNI_WATCH=false UNI_PLATFORM=h5 UNI_UI=true node build/build.js",
Expand Down
Loading

0 comments on commit 5a76199

Please sign in to comment.