ソースを参照

Update svelte.config.js

Added svelte inspector for easier development
Excho 3 ヶ月 前
コミット
8468085291
1 ファイル変更9 行追加1 行削除
  1. 9 1
      svelte.config.js

+ 9 - 1
svelte.config.js

@@ -16,8 +16,16 @@ const config = {
 			fallback: 'index.html'
 			fallback: 'index.html'
 		})
 		})
 	},
 	},
+	vitePlugin: {
+		inspector: {
+			toggleKeyCombo: 'meta-shift', // Key combination to open the inspector
+			holdMode: false,             // Enable or disable hold mode
+			showToggleButton: 'always',  // Show toggle button ('always', 'active', 'never')
+			toggleButtonPos: 'bottom-right' // Position of the toggle button
+		}
+	},
 	onwarn: (warning, handler) => {
 	onwarn: (warning, handler) => {
-		const { code, _ } = warning;
+		const { code } = warning;
 		if (code === 'css-unused-selector') return;
 		if (code === 'css-unused-selector') return;
 
 
 		handler(warning);
 		handler(warning);