var path = require('path'); module.exports = { entry: './src/main.js', output: { path: path.resolve(__dirname), filename: 'bundle.js' }, module: { rules: [ { test: /\.vue$/, loader: 'vue-loader' }, { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ } ] }, resolve: { extensions: ['*', '.js', '.vue'], alias: { 'vue$': 'vue/dist/vue.common.js' } } }