-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.devHTML.js
More file actions
37 lines (32 loc) · 888 Bytes
/
webpack.config.devHTML.js
File metadata and controls
37 lines (32 loc) · 888 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
31
32
33
34
35
36
37
/**
* Used only to auto generate html files for DEVELOPMENT MODE
*/
// IMPORTS
var Clean = require('clean-webpack-plugin');
const Webpack = require('webpack');
const helpers = require("./webpack.helpers");
const entryObject = helpers.createEntryObject(helpers.entries);
const HTMLWebpackPluginObjects = helpers.createHTMLWebpackPluginObjects(helpers.entries);
module.exports = {
entry: entryObject,
resolve: {
extensions: ['', '.js', '.jsx']
},
output: {
path: helpers.PUBLIC_PATH,
filename: 'js/[name].js'
},
module: {
loaders: [
{
test: /\.jsx?$/,
loaders: ['react-hot', 'babel'],
include: helpers.CLIENT_PATH
}
]
},
plugins: HTMLWebpackPluginObjects.concat([
// Additional plugins here
new Clean(['public']),
])
};