forked from socket-react-client/socket-react-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
30 lines (29 loc) · 715 Bytes
/
webpack.config.js
File metadata and controls
30 lines (29 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const path = require('path');
const htmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './dev/index.js',
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel-loader',
}
]
},
// Extensions for webpack
plugins: [
// Automatically generate our html page
// https://www.npmjs.com/package/html-webpack-plugin
new htmlWebpackPlugin({
// Define the starting point for our dynamic html creation
template: path.join(__dirname, 'dev/index.html'),
appMountId: 'root',
title: 'Hello',
}),
],
}