Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* eslint-disable import/no-extraneous-dependencies */
import path from 'path';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import ScriptExtHtmlWebpackPlugin from 'script-ext-html-webpack-plugin';
const htmlPlugin = new HtmlWebpackPlugin({
title: 'Book A Meal',
template: 'client/src/index.html',
filename: 'index.html'
});
const scriptExtHtmlPlugin = new ScriptExtHtmlWebpackPlugin({
defaultAttribute: 'defer'
});
export default {
output: {
path: path.resolve(__dirname, './client/dist'),
filename: '[name].bundle.js',
publicPath: '/'
},
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: [
{