24 lines
516 B
JavaScript
24 lines
516 B
JavaScript
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin')
|
|
|
|
module.exports = {
|
|
devtool: 'source-map',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /.js$/,
|
|
exclude: /node_modules/,
|
|
loader: 'babel-loader'
|
|
}
|
|
]
|
|
},
|
|
plugins: [
|
|
new HtmlWebpackPlugin(),
|
|
// hot reload not working right now
|
|
new ReactRefreshWebpackPlugin({ disableRefreshCheck: true })
|
|
],
|
|
devServer: {
|
|
stats: 'minimal'
|
|
}
|
|
}
|