Last active
July 11, 2022 12:06
-
-
Save ssaunier/0490d2093b9f72ba67024410bfb30915 to your computer and use it in GitHub Desktop.
Basic webpack boilerplate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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()], | |
}; |
Yep, stuck a that same point too
👋 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
Same issue as above