const path = require('path') const HtmlWebpackPlugin = require('html-webpack-plugin') const config = { mode: 'production', entry: './src/app.js', output: { path: path.resolve(__dirname, 'dist'), filename: 'main.js' }, module: { rules: [ { test: /\.scss$/, use: ['style-loader', 'css-loader', 'sass-loader'] } ] }, plugins: [ new HtmlWebpackPlugin({ title: 'Vicc', filename: 'index.html' }) ] } module.exports = config