Newer
Older
/* eslint-disable */
const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
entry: './src/index.js',
output: {
path: __dirname + '/build/npm-build/',
filename: 'bundle.js'
},
devServer: {
contentBase: "./src",
hot: true,
https: false,
proxy: {
"/openbis": {

yvesn
committed
"target": 'http://localhost:8888',
pathRewrite: {'^/openbis/resources' : '/openbis-test/resources'},
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
"changeOrigin": true,
"secure": false
}
}
},
devtool: "source-map",
mode: 'development',
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: {
loader: "babel-loader"
}
},
{
test: /\.(css)$/,
use: [
'style-loader',
'css-loader'
]
},
{
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000
}
}
]
},
plugins: [
new HtmlWebpackPlugin({
inject: 'body',
filename: './index.html',
template: './index.html'
})
]
};