Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

H5模板-安卓4.4页面空白相关问题怎么解决? #1

Open
zhangyongqiang010 opened this issue Feb 19, 2019 · 1 comment
Open

Comments

@zhangyongqiang010
Copy link

No description provided.

@zhangyongqiang010
Copy link
Author

babel-polyfill es6 兼容配置

  • 安装 babel-polyfill
npm install --save-dev babel-polyfill 
  • 修改 build -> webpack.base.conf.js 文件
entry: {
    app: ['babel-polyfill', './src/main.js']
}

image

autoprefix 低版本兼容配置

  • 安装 autoprefix
npm install autoprefix
  • 修改 build -> webpack.prod.conf.js
module: {
    rules: utils.styleLoaders({
      sourceMap: config.build.productionSourceMap,
      extract: true,
      usePostCSS: true,
   })
},

image

  • 修改 package.json
"browserslist": [
    "> 1%",
    "last 7 versions",
    "not ie <= 8",
    "ios >= 8",
    "android >= 4.0"
]

image

@zhangyongqiang010 zhangyongqiang010 changed the title 空调H5模板-安卓4.4页面空白相关问题怎么解决? H5模板-安卓4.4页面空白相关问题怎么解决? Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant