let webpack = require('webpack')
let path = require('path')
module.exports = {
entry: './main.js',
output: {
path: __dirname + '/build',
filename: 'bundle.js',
publicPath: './build'
},
resolve: {
alias: {
'vue$': 'vue/dist/vue.common.js'
}
},
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader',
options: {
postLoaders: {
html: 'babel-loader'
},
excludedPreLoaders: /(eslint-loader)/
}
}
]
}
}