feather/webpack.config.js

28 lines
475 B
JavaScript
Raw Normal View History

2017-01-29 00:55:50 +03:00
var path = require('path');
module.exports = {
entry: './src/main.js',
output: {
path: path.resolve(__dirname),
filename: 'bundle.js'
2017-01-29 01:46:21 +03:00
},
module: {
rules: [
2017-01-29 02:15:20 +03:00
{
test: /\.vue$/,
loader: 'vue-loader'
},
2017-01-29 01:46:21 +03:00
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/
}
]
2017-01-29 02:03:26 +03:00
},
resolve: {
2017-01-29 02:15:20 +03:00
extensions: ['*', '.js', '.vue'],
2017-01-29 02:03:26 +03:00
alias: {
'vue$': 'vue/dist/vue.common.js'
}
2017-01-29 00:55:50 +03:00
}
}