Added webpack build config

This commit is contained in:
euvl
2016-11-14 15:46:35 +00:00
parent 0a1017bfc4
commit a13056c608
12 changed files with 102 additions and 56 deletions

26
webpack.base.config.js Normal file
View File

@@ -0,0 +1,26 @@
module.exports = {
entry: './src/index.js',
output: {
path: './dist',
publicPath: 'dist/',
filename: 'vue-modal.js'
},
module: {
loaders: [
{
test: /\.vue$/,
loader: 'vue'
},
{
test: /\.js$/,
loader: 'babel!eslint',
exclude: /node_modules/
}
]
},
vue: {
loaders: {
js: 'babel!eslint'
}
}
};