Skip to content

Instantly share code, notes, and snippets.

@ssaunier
Last active July 11, 2022 12:06
Show Gist options
  • Save ssaunier/0490d2093b9f72ba67024410bfb30915 to your computer and use it in GitHub Desktop.
Save ssaunier/0490d2093b9f72ba67024410bfb30915 to your computer and use it in GitHub Desktop.
Basic webpack boilerplate
// Webpack 5 default configuration
const HtmlWebpackPlugin = require('html-webpack-plugin');
const path = require('path');
module.exports = {
mode: 'development',
entry: './src/index.js',
output: {
path: path.resolve(__dirname, './dist'),
filename: 'bundle.js',
},
plugins: [new HtmlWebpackPlugin()],
};
@lizmtobin
Copy link

Yep, stuck a that same point too

@ssaunier
Copy link
Author

👋 I updated the boilerplate to Webpack 5!

You'll need to run:

yarn add html-webpack-plugin --dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment