const path = require('path'); module.exports = [{ name: 'js', entry: ['./src/index.js'], output: { filename: 'main.js', path: path.resolve(__dirname, 'dist') } }, { name: 'css', entry: ['./src/style.sass'], module: { rules: [ { test: /\.sass$/, use: [ { loader: 'file-loader', options: { name: 'style.css', } }, { loader: 'extract-loader' }, { loader: 'css-loader?-url' }, { loader: 'sass-loader' } ] } ] } }];