Browse Source

fix mobile

pull/9/head
tjz 7 years ago
parent
commit
2df0dec687
  1. 4
      examples/index.html
  2. 1
      webpack.config.js

4
examples/index.html

@ -1,13 +1,15 @@
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head> </head>
<body> <body>
<div id="app"> <div id="app">
<router-view></router-view> <router-view></router-view>
</div> </div>
</body> </body>

1
webpack.config.js

@ -36,6 +36,7 @@ module.exports = merge(baseWebpackConfig, {
}, },
devServer: { devServer: {
port: 3000, port: 3000,
host: '0.0.0.0',
historyApiFallback: { historyApiFallback: {
rewrites: [ rewrites: [
{ from: /.*/, to: '/index.html' }, { from: /.*/, to: '/index.html' },

Loading…
Cancel
Save