FakeArtist/client/webpack.config.js

22 lines
439 B
JavaScript
Raw Permalink Normal View History

2023-12-26 23:33:11 +01:00
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
}
};