10 lines
No EOL
342 B
JavaScript
10 lines
No EOL
342 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: './main.js', // Adjust the path if your index.js is located elsewhere
|
|
output: {
|
|
filename: 'bundle.js', // The output file
|
|
path: path.resolve(__dirname, 'dist'), // The output directory
|
|
},
|
|
mode: 'production', // Use 'production' for minified output
|
|
}; |