forked from pugnascotia/spring-react-isomorphic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
38 lines (37 loc) · 948 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
var path = require('path');
var ROOT = path.resolve(__dirname, 'src/main/resources/static');
var SRC = path.resolve(ROOT, 'jsx');
var DEST = path.resolve(ROOT, 'output');
module.exports = {
entry: SRC,
resolve: {
extensions: ['', '.js', '.jsx' ]
},
output: {
path: DEST,
filename: 'bundle.js',
publicPath: '/output/',
library: 'MyApp'
},
module: {
loaders: [
{
test: /\.jsx?$/,
loaders: ['babel'],
include: SRC
}
]
},
devServer: {
port: 9090,
proxy: {
'/*': {
target: 'http://localhost:8080',
secure: false,
// node-http-proxy option - don't add /localhost:8080/ to proxied request paths
prependPath: false
},
},
publicPath: 'http://localhost:9090/output/'
}
};