diff --git a/webpack.config.js b/webpack.config.js index be6ca2f..b141cc0 100644 --- a/webpack.config.js +++ b/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,