mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
migrate code for github
This commit is contained in:
37
web/webpack.config.js
Normal file
37
web/webpack.config.js
Normal file
@ -0,0 +1,37 @@
|
||||
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
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user