-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
38 lines (37 loc) · 963 Bytes
/
webpack.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
const ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
module: {
loaders: [
{
test: /\.js/,
exclude: /node_modules/,
loader: 'babel'
},
{
test: /\.json/,
exclude: /node_modules/,
loader: 'json'
},
{
test: /\.s?css/,
include: /css/,
loader: ExtractTextPlugin.extract([
'css?sourceMap',
'sass?sourceMap'
])
}
]
},
plugins: [
new ExtractTextPlugin('[name]')
],
entry: {
'b_index.js': ['core-js', 'web-core', './index.js'],
'./css/main.css': ['react-select/dist/react-select.css', './css/main.scss']
},
output: {
path: '.',
filename: '[name]'
},
devtool: 'source-map',
};