Skip to content

Commit

Permalink
Support IE
Browse files Browse the repository at this point in the history
  • Loading branch information
lin-xin committed Mar 28, 2017
1 parent 7ee40d9 commit 03d3444
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/webpack.base.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function resolve (dir) {

module.exports = {
entry: {
app: './src/main.js'
app: ['babel-polyfill','./src/main.js']
},
output: {
path: config.build.assetsRoot,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"dependencies": {
"axios": "^0.15.3",
"babel-polyfill": "^6.23.0",
"element-ui": "^1.2.2",
"vue": "^2.1.10",
"vue-core-image-upload": "^2.0.5",
Expand Down
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import router from './router';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-default/index.css'; // 默认主题
// import '../static/css/theme-green/index.css'; // 浅绿色主题

import "babel-polyfill";
Vue.use(ElementUI);
new Vue({
router,
render: h => h(App)
}).$mount('#app');
}).$mount('#app');

0 comments on commit 03d3444

Please sign in to comment.