File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-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,10 @@ 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' ] ? new HttpsProxyAgent ( process . env [ 'https_proxy' ] ) : undefined
120
+ }
117
121
) . then ( ( result ) => result . text ( ) ) ;
118
122
119
123
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.7" ,
77
78
"sass" : " ^1.54.0" ,
78
79
"yargs" : " ^17.5.1"
You can’t perform that action at this time.
0 commit comments