Skip to content

Commit f4cab5d

Browse files
committed
Embeds css in webview html
1 parent f529df4 commit f4cab5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ function getWebviewsConfig(mode, env) {
283283
excludeAssets: [/.+-styles\.js/],
284284
filename: path.join(__dirname, 'dist/webviews/settings.html'),
285285
inject: true,
286+
inlineSource: mode === 'production' ? '.css$' : undefined,
286287
cspPlugin: {
287288
enabled: true,
288289
policy: cspPolicy,
@@ -311,6 +312,7 @@ function getWebviewsConfig(mode, env) {
311312
excludeAssets: [/.+-styles\.js/],
312313
filename: path.join(__dirname, 'dist/webviews/welcome.html'),
313314
inject: true,
315+
inlineSource: mode === 'production' ? '.css$' : undefined,
314316
cspPlugin: {
315317
enabled: true,
316318
policy: cspPolicy,

0 commit comments

Comments
 (0)