-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.serve.cjs
41 lines (38 loc) · 1.18 KB
/
webpack.serve.cjs
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
// Copyright 2017-2022 @polkadot/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const { merge } = require('webpack-merge');
const baseConfig = require('./webpack.base.cjs');
module.exports = merge(
baseConfig(__dirname, 'development'),
{
devServer: {
hot: true,
open: false,
port: 3000,
static: path.resolve(__dirname, 'build'),
proxy:{
'/v1': {
target: 'https://coming-zero-wallet.coming.chat',
pathRewrite: {'/v1' : ''},
changeOrigin: true,
secure: false,
}
}
},
plugins: [
new HtmlWebpackPlugin({
PAGE_TITLE: 'SherpaX Dapp Wallet',
inject: true,
template: path.join(__dirname, 'public/index.html')
})
],
watchOptions: {
// 5.66.0 work-around (was reduced to 20, then started failing)
// https://github.com/webpack/webpack/commit/96da7660021e8aa31e163bacd3515960eb253422#diff-13cf5374edb5eced5f3770d5f346c59252f87a90de91bc57306077693c8b95e2R52
aggregateTimeout: 600,
ignored: ['.yarn', 'build', 'node_modules']
}
}
);