mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-31 12:00:21 +08:00
37 lines
860 B
JavaScript
37 lines
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
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|