-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
35 lines (31 loc) · 871 Bytes
/
webpack.config.js
File metadata and controls
35 lines (31 loc) · 871 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
/**
* Webpack Configuration
* =====================
*
* Workspace fills the whole Webpack configuration for you,
* still you can override every single option for both "dev" and "prod" scenario.
*
*/
exports.dev = function() {
return {
output: {
// exports each application entry points as universal modules
// so the file name will be available in the global scope as it was a library
libraryTarget: 'umd',
library: ['[name]']
},
externals: {
'firebase' : 'Firebase',
'react' : 'React'
},
module: {
loaders: [
{ test: /\.jsx$/, loaders: ['jsx?harmony'] },
{ test: /\.json$/, loaders: ['json'] }
]
}
};
};
exports.prod = function() {
return {};
};