const HtmlWebpackPlugin = require('html-webpack-plugin') const path = require('path') module.exports = { entry: './index.js', output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist'), clean: true }, plugins: [new HtmlWebpackPlugin()], module: { rules: [ { test: /\.(scss|css)$/, use: ['style-loader', 'css-loader', 'sass-loader'], } ] }, devServer: { port: 3000 } }