dnscontrol/web/webpack.config.js
2016-08-22 18:31:50 -06:00

37 lines
No EOL
860 B
JavaScript

var path = require('path')
var webpack = require('webpack');
module.exports = {
// entry point of our application
entry: './app/main.js',
// where to place the compiled bundle
output: {
path: __dirname,
filename: 'bundle.js'
},
resolve: {
extensions: ['', '.js', '.vue'],
fallback: [path.join(__dirname, './node_modules')],
},
resolveLoader: {
fallback: [path.join(__dirname, '../node_modules')]
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel'
},
{
test: /\.js$/,
include: /node_modules/,
loader: 'strip-sourcemap-loader'
},
{
test: /\.vue$/, // a regex for matching all files that end in `.vue`
loader: 'vue' // loader to use for matched files
}
]
}
}