🎉
This commit is contained in:
commit
bddd51dd5d
14 changed files with 8441 additions and 0 deletions
21
client/webpack.config.js
Normal file
21
client/webpack.config.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue