mirror of https://github.com/gophish/gophish
23 lines
541 B
JavaScript
23 lines
541 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
context: path.resolve(__dirname, 'static', 'js', 'src', 'app'),
|
|
entry: {
|
|
passwords: './passwords',
|
|
users: './users',
|
|
webhooks: './webhooks',
|
|
},
|
|
output: {
|
|
path: path.resolve(__dirname, 'static', 'js', 'dist', 'app'),
|
|
filename: '[name].min.js'
|
|
},
|
|
module: {
|
|
rules: [{
|
|
test: /\.js$/,
|
|
exclude: /node_modules/,
|
|
use: {
|
|
loader: "babel-loader"
|
|
}
|
|
}]
|
|
}
|
|
} |