github.com/merlinepedra/gopphish-attack@v0.9.0/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 users: './users', 7 webhooks: './webhooks', 8 }, 9 output: { 10 path: path.resolve(__dirname, 'static', 'js', 'dist', 'app'), 11 filename: '[name].min.js' 12 }, 13 module: { 14 rules: [{ 15 test: /\.js$/, 16 exclude: /node_modules/, 17 use: { 18 loader: "babel-loader" 19 } 20 }] 21 } 22 }