FakeArtist/client/webpack.config.js
Sch1nken bddd51dd5d 🎉
2023-12-26 23:33:11 +01:00

21 lines
439 B
JavaScript

const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './src/App.js',
output: {
filename: './index.js',
path: path.resolve(__dirname, 'build')
},
plugins: [
new HtmlWebpackPlugin({
filename: 'index.html',
template: path.resolve(__dirname, './src/index.html'),
}),
],
devServer: {
static: path.join(__dirname, 'build'),
compress: true,
port: 8080
}
};