-
-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathwebpack.config.js
More file actions
28 lines (27 loc) · 766 Bytes
/
webpack.config.js
File metadata and controls
28 lines (27 loc) · 766 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
var webpack = require('webpack');
var path = require('path');
module.exports = {
entry: {
charts: path.resolve(__dirname, 'src/main/js/charts.js')
},
output: {
path: path.resolve(__dirname, 'src/main/resources/static/'),
filename: "[name].js"
},
plugins: [
// ignore all locales coming with moment.js
new webpack.ContextReplacementPlugin(/moment[\\\/]locale$/, /^$/)
],
devtool: 'source-map',
devServer: {
contentBase: path.resolve(__dirname, 'src/main/resources/static/'),
proxy: {
'/api/**': {
target: 'http://localhost:8080/',
secure: false,
changeOrigin: true
}
},
port: 8081
}
};