File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ const sass = require('sass');
4
4
const fetch = require ( 'node-fetch' ) ;
5
5
const yargs = require ( 'yargs/yargs' ) ;
6
6
const { hideBin } = require ( 'yargs/helpers' ) ;
7
+ const HttpsProxyAgent = require ( 'https-proxy-agent' ) ;
7
8
8
9
yargs ( hideBin ( process . argv ) )
9
10
. command (
@@ -113,7 +114,12 @@ yargs(hideBin(process.argv))
113
114
const themeSource = await fetch (
114
115
`https://raw.githubusercontent.com/hperrin/svelte-material-ui/master/packages/site/src/theme/${
115
116
dark ? 'dark/' : ''
116
- } _smui-theme.scss`
117
+ } _smui-theme.scss`,
118
+ {
119
+ agent : process . env [ 'https_proxy' ]
120
+ ? new HttpsProxyAgent ( process . env [ 'https_proxy' ] )
121
+ : undefined ,
122
+ }
117
123
) . then ( ( result ) => result . text ( ) ) ;
118
124
119
125
if ( ! themeSource ) {
Original file line number Diff line number Diff line change 73
73
},
74
74
"dependencies" : {
75
75
"@material/theme" : " ^14.0.0" ,
76
+ "https-proxy-agent" : " ^5.0.1" ,
76
77
"node-fetch" : " ^2.6.9" ,
77
78
"sass" : " ^1.60.0" ,
78
79
"yargs" : " ^17.7.1"
You can’t perform that action at this time.
0 commit comments