瀏覽代碼

Embeds css in webview html

main
Eric Amodio 4 年之前
父節點
當前提交
f4cab5de51
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      webpack.config.js

+ 2
- 0
webpack.config.js 查看文件

@ -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,

Loading…
取消
儲存