19 lines
341 B
JavaScript
19 lines
341 B
JavaScript
|
const path = require('path')
|
||
|
var HtmlWebpackPlugin = require('html-webpack-plugin')
|
||
|
|
||
|
module.exports = {
|
||
|
entry: './src/index.js',
|
||
|
output: {
|
||
|
filename: 'bundle.js',
|
||
|
path: path.resolve(__dirname, 'dist')
|
||
|
},
|
||
|
devServer: {
|
||
|
port: 3000
|
||
|
},
|
||
|
plugins: [
|
||
|
new HtmlWebpackPlugin({
|
||
|
template: './src/index.html'
|
||
|
})
|
||
|
]
|
||
|
}
|