Skip to content

Instantly share code, notes, and snippets.

@cursorial
Last active July 16, 2021 17:30
Show Gist options
  • Save cursorial/9c9cf5fd3aa1bcfea6cfae53cb5dca92 to your computer and use it in GitHub Desktop.
Save cursorial/9c9cf5fd3aa1bcfea6cfae53cb5dca92 to your computer and use it in GitHub Desktop.
const path = require('path')
module.exports = {
entry: './src/index.js',
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'dist')
},
mode: 'development',
devServer: {
contentBase: './dist',
hot: true,
open: true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment