Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
entry: './src/index.js',
output: {
path: __dirname + '/build',
publicPath: '/',
filename: 'app.js'
devServer: {
contentBase: './build'
plugins: [
new HtmlWebpackPlugin({
template: 'src/index.html',
inject: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment