-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZENKO-2875 Slimming down the bundle(s)
- Loading branch information
1 parent
cf5569a
commit 01649fd
Showing
10 changed files
with
316 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/public/assets/js | ||
/public/assets/fonts | ||
/public/assets/index.html | ||
/public/assets/index.html.gz | ||
|
||
yarn-error.log | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,34 @@ | ||
server { | ||
listen 8383; | ||
server_name localhost; | ||
server_name _; | ||
|
||
# send precompressed files with the “.gz” filename extension instead of regular files | ||
gzip_static on; | ||
|
||
root /usr/share/nginx/html; | ||
index index.html index.htm; | ||
|
||
location / { | ||
try_files $uri $uri/ /index.html; | ||
} | ||
|
||
location /s3 { | ||
rewrite /s3/(.*) /$1 break; | ||
proxy_pass http://10.200.2.13:8000/; | ||
proxy_redirect off; | ||
proxy_set_header host $host:$server_port; | ||
proxy_set_header proxy_path /s3/$1; | ||
} | ||
|
||
location /iam { | ||
proxy_pass http://10.200.2.13:8600/; | ||
proxy_set_header host $host:$server_port; | ||
proxy_set_header proxy_path /iam; | ||
} | ||
|
||
location /sts { | ||
proxy_pass http://10.200.2.13:8800/; | ||
proxy_set_header host $host:$server_port; | ||
proxy_set_header proxy_path /sts; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
const webpack = require('webpack'); | ||
const merge = require('webpack-merge'); | ||
const common = require('./webpack.common'); | ||
const CompressionPlugin = require('compression-webpack-plugin'); | ||
|
||
module.exports = merge(common, { | ||
mode: 'production', | ||
devtool: 'hidden-source-map', | ||
plugins: [ | ||
new CompressionPlugin(), | ||
], | ||
}); |
Oops, something went wrong.