Sfoglia il codice sorgente

Embeds css in webview html

main
Eric Amodio 4 anni fa
parent
commit
f4cab5de51
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      webpack.config.js

+ 2
- 0
webpack.config.js Vedi File

@ -283,6 +283,7 @@ function getWebviewsConfig(mode, env) {
excludeAssets: [/.+-styles\.js/],
filename: path.join(__dirname, 'dist/webviews/settings.html'),
inject: true,
inlineSource: mode === 'production' ? '.css$' : undefined,
cspPlugin: {
enabled: true,
policy: cspPolicy,
@ -311,6 +312,7 @@ function getWebviewsConfig(mode, env) {
excludeAssets: [/.+-styles\.js/],
filename: path.join(__dirname, 'dist/webviews/welcome.html'),
inject: true,
inlineSource: mode === 'production' ? '.css$' : undefined,
cspPlugin: {
enabled: true,
policy: cspPolicy,

Caricamento…
Annulla
Salva