feather/webpack.config.js
2017-01-28 15:15:20 -08:00

28 lines
475 B
JavaScript

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'
}
}
}