const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
entry: [
'core-js/fn/array/from',
'core-js/fn/array/includes',
'./src/app.js'
],
mode: process.env.NODE_ENV || 'development',
output: {
filename: '[name].[contenthash].js',
path: path.resolve(__dirname, 'dist')
},
plugins: [
new HtmlWebpackPlugin({
template: 'src/index.html'
})
],
module: {
rules: [
{
test: /\.html$/,
loader: 'html-loader',
options: {
interpolate: true
}
},
{
test: /\.(scss)$/,
use: [
{
// Adds CSS to the DOM by injecting a `