-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.dist.js
More file actions
42 lines (35 loc) · 833 Bytes
/
webpack.config.dist.js
File metadata and controls
42 lines (35 loc) · 833 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
38
39
40
41
42
'use strict';
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: {
reactApp: ['./app/templates/client/index.js']
},
module: {
loaders: [
{ test: /\.js$/, loader: 'babel?stage=0&loose=all', exclude: /node_modules/ },
{ test: /\.scss$/, loader: 'css?modules&localIdentName=[local]!postcss!sass'},
{
test: /\.(jpe?g|png|gif|svg)$/i,
loaders: [
'file?context=' + rootAssetPath + '&name=[path][name].[hash].[ext]'
]
}
]
},
externals: {
'react': 'react',
'react-dom': 'ReactDOM',
},
output: {
filename: './app/static/bundle.js',
libraryTarget: 'umd',
library: 'FacebookLogin'
},
resolve: {
extensions: ['', '.js']
},
plugins: [
new webpack.optimize.DedupePlugin()
]
};