forked from foxhound87/rfx-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.client.babel.js
More file actions
37 lines (32 loc) · 884 Bytes
/
webpack.config.client.babel.js
File metadata and controls
37 lines (32 loc) · 884 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
/* eslint global-require: 0 */
/* eslint import/first: 0 */
/* eslint import/newline-after-import: 0 */
/* eslint import/no-extraneous-dependencies: 0 */
import './run/global';
import merge from 'webpack-merge';
import Globals from './webpack/globals';
import getLoaders from './webpack/loaders';
let Config;
let Loader = getLoaders();
Config = require('./webpack/config.client').load();
const ConfigClientDev = require('./webpack/config.client.dev');
Loader = merge(Loader, ConfigClientDev.loader());
Config = merge(Config, ConfigClientDev.config());
// Globals
Config = merge(Config, Globals);
// Loaders
Config = merge(Config, {
module: {
loaders: [
Loader.eslint,
Loader.jsx,
Loader.json,
Loader.url,
Loader.file,
Loader.cssGlobal,
Loader.cssModules,
],
},
});
const WebpackConfig = Config;
export default WebpackConfig;