diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index b8d628e..85356f1 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -5,7 +5,7 @@ var projectRoot = path.resolve(__dirname, '../') module.exports = { entry: { - app: './src/index.js' + app: './src/main.js' }, output: { path: config.build.assetsRoot, diff --git a/src/main.js b/src/main.js new file mode 100644 index 0000000..317fa9a --- /dev/null +++ b/src/main.js @@ -0,0 +1,9 @@ +// The Vue build version to load with the `import` command +// (runtime-only or standalone) has been set in webpack.base.conf with an alias. +import Vue from 'vue' +import App from './examples/App' + +/* eslint-disable no-new */ +new Vue({ + render: h => h(App) +}).$mount('#app')