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