forked from nipungarg59/bloodrunners
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.base.config.js
51 lines (44 loc) · 1.31 KB
/
webpack.base.config.js
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
var path = require("path")
var webpack = require('webpack')
module.exports = {
context: __dirname,
entry: {
// Add as many entry points as you have container-react-components here
App1: './reactjs/App1',
Home: './reactjs/Home',
Login: './reactjs/Login',
SignupFirebaseConfig: './reactjs/SignupFirebaseConfig',
Search: './reactjs/Search',
Extra: './reactjs/Search',
Data: './reactjs/Data',
Data2: './reactjs/Data2',
Profile: './reactjs/Profile',
Firebase: './reactjs/Firebase',
Firebase_auth: './reactjs/Firebase_auth',
react_map: './reactjs/react_map',
practice: './reactjs/practice',
map1: './reactjs/map1',
practice1: './reactjs/practice1',
request: './reactjs/request',
Loc_change: './reactjs/Loc_change',
Now:'./reactjs/Now',
LetsWait: './reactjs/LetsWait',
vendors: ['react'],
},
output: {
path: path.resolve('./djreact/static/bundles/local/'),
filename: "[name]-[hash].js"
},
externals: [
], // add all vendor libs
plugins: [
new webpack.optimize.CommonsChunkPlugin('vendors', 'vendors.js'),
], // add all common plugins here
module: {
loaders: [] // add all common loaders here
},
resolve: {
modulesDirectories: ['node_modules', 'bower_components'],
extensions: ['', '.js', '.jsx', '.css']
},
}