-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathwebpack.config.js
44 lines (40 loc) · 985 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
39
40
41
42
43
44
var ProgressPlugin = require('./util/progress-plugin');
var PROD = process.env.NODE_ENV === 'production'
var plugins = [
ProgressPlugin()
]
if (PROD) {
plugins = []
}
module.exports = {
entry: {
"bundle": ['./client/client.js'],
"batch-bundle": ['./client/batch.js'],
"embed": ['./client/embed.js'],
"topics": ['./client/topics.js'],
"preview": ['./client/preview.js'],
"reduxharness": ['./client/reduxharness.js']
},
output: {
path: __dirname + '/src/dotnet-storyteller',
filename: "[name].js",
publicPath: '/client/public/javascript/',
pathinfo: true
},
resolve: {
// Allow to omit extensions when requiring these files
extensions: ['', '.js', '.jsx']
},
plugins: plugins,
module: {
loaders: [
{ test: /\.css$/, loader: "style!css" },
{
test: /\.(js|jsx)$/,
loader: 'babel?{"presets": ["es2015", "react"]}',
exclude: /node_modules/,
},
]
},
devtool: 'eval'
}