forked from dhis2/app-management-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack-base-config.js
41 lines (40 loc) · 1005 Bytes
/
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
var path = require('path');
module.exports = {
context: __dirname,
entry: './src/apps-app.js',
devtool: 'source-map',
output: {
path: __dirname + '/build',
filename: 'apps-app.js',
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel',
query: {
presets: ['es2015', 'stage-2', 'react'],
},
},
{
test: /\.js$/,
loader: 'exports',
},
{
test: /\.css$/,
loader: 'style-loader!css-loader',
},
{
test: /\.scss$/,
loader: 'style!css!sass',
},
],
},
resolve: {
alias: {
react: path.resolve('./node_modules/react'),
'material-ui': path.resolve('./node_modules/material-ui'),
},
},
};