const path = require('path'); module.exports = { entry: './index.js', output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist') }, module: { rules: [ { test: /.(ttf|otf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/, use: [{ loader: 'file-loader', options: { name: '[name].[ext]', outputPath: 'fonts/', // where the fonts will go publicPath: '/dist/fonts' // override the default path } }] }, { test: /\.(scss)$/, use: [ { // Adds CSS to the DOM by injecting a `