Skip to content

Instantly share code, notes, and snippets.

@codeaholicguy
Created June 27, 2016 18:00
Show Gist options
  • Save codeaholicguy/259891e8d876654b1d524a1483d12d75 to your computer and use it in GitHub Desktop.
Save codeaholicguy/259891e8d876654b1d524a1483d12d75 to your computer and use it in GitHub Desktop.
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