forked from parse-community/parse-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.config.js
47 lines (45 loc) · 1.17 KB
/
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
/*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
//This file should be imported by another config file, like build.config.js
var path = require('path');
var SvgPrepPlugin = require('./plugins/svg-prep');
module.exports = {
output: {
filename: '[name].bundle.js'
},
resolve: {
root: [__dirname, path.join(__dirname, 'node_modules')]
},
resolveLoader: {
root: path.join(__dirname, 'node_modules')
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
optional: ['runtime', 'es7.decorators']
}
}, {
test: /\.scss$/,
loader: "style-loader!css-loader?modules&localIdentName=[local]__[hash:base64:5]!sass-loader?includePaths[]=" +
encodeURIComponent(path.resolve(__dirname, "../../app/webpack"))
}, {
test: /\.css$/,
loader: 'style-loader!css-loader'
}
]
},
plugins: [
new SvgPrepPlugin({
source: path.join(__dirname, 'icons')
})
]
};