luyanan 6 years ago
parent
commit
aa3bbb4381
4 changed files with 4 additions and 3 deletions
  1. 1 1
      build/webpack.base.conf.js
  2. 1 1
      config/index.js
  3. 1 0
      index.html
  4. 1 1
      src/main.js

+ 1 - 1
build/webpack.base.conf.js

@ -22,7 +22,7 @@ const createLintingRule = () => ({
22 22
module.exports = {
23 23
  context: path.resolve(__dirname, '../'),
24 24
  entry: {
25
    app: './src/main.js'
25
    app: ['babel-polyfill', './src/main.js']
26 26
  },
27 27
  output: {
28 28
    path: config.build.assetsRoot,

+ 1 - 1
config/index.js

@ -67,7 +67,7 @@ module.exports = {
67 67
     * Source Maps
68 68
     */
69 69
70
    productionSourceMap: true,
70
    productionSourceMap: false,
71 71
    // https://webpack.js.org/configuration/devtool/#production
72 72
    devtool: '#source-map',
73 73

+ 1 - 0
index.html

@ -3,6 +3,7 @@
3 3
  <head>
4 4
    <meta charset="utf-8">
5 5
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
6
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
6 7
    <title>声脉桥梁云监控平台</title>
7 8
  </head>
8 9
  <body>

+ 1 - 1
src/main.js

@ -1,3 +1,4 @@
1
import 'babel-polyfill'
1 2
import Vue from 'vue'
2 3
3 4
import 'normalize.css/normalize.css'// A modern alternative to CSS resets
@ -6,7 +7,6 @@ import ElementUI from 'element-ui'
6 7
import 'element-ui/lib/theme-chalk/index.css'
7 8
8 9
import '@/styles/index.scss' // global css
9
import 'babel-polyfill'
10 10
11 11
import App from './App'
12 12
import router from './router'