const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { mode: 'development', entry: './src/main.js', output: { filename: 'main.bundle.js', path: path.resolve(__dirname, './dist'), }, module: { rules: [ { test: /\.css$/, use: ['style-loader', 'css-loader'], }, ], }, plugins: [new HtmlWebpackPlugin()], };