github.com/lunarobliq/gophish@v0.8.1-0.20230523153303-93511002234d/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 }