github.com/gophish/gophish@v0.12.2-0.20230915144530-8e7929441393/webpack.config.js (about) 1 const path = require('path'); 2 3 module.exports = { 4 context: path.resolve(__dirname, 'static', 'js', 'src', 'app'), 5 entry: { 6 passwords: './passwords', 7 users: './users', 8 webhooks: './webhooks', 9 }, 10 output: { 11 path: path.resolve(__dirname, 'static', 'js', 'dist', 'app'), 12 filename: '[name].min.js' 13 }, 14 module: { 15 rules: [{ 16 test: /\.js$/, 17 exclude: /node_modules/, 18 use: { 19 loader: "babel-loader" 20 } 21 }] 22 } 23 }