webpack-code-inspector-plugin
Advanced tools
Comparing version 0.0.5 to 0.0.6
import { HotKey } from 'code-inspector-core'; | ||
interface Options { | ||
hotKeys?: HotKey[] | false; | ||
hideSwitch?: boolean; | ||
showSwitch?: boolean; | ||
autoToggle?: boolean; | ||
@@ -6,0 +6,0 @@ } |
{ | ||
"name": "webpack-code-inspector-plugin", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:zh-lx/code-inspector.git", |
@@ -94,3 +94,3 @@ <div align="center"> | ||
| ---------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------- | -------------------------------------------------------------------- | ------------------------ | | ||
| hideSwitch | Whether hide the button of this function | `boolean` | `true/false` | `false` | | ||
| showSwitch | Whether show the switch button of this function | `boolean` | `true/false` | `false` | | ||
| hotKeys | Combination keys for triggering this function.When the value is `false` or `[]`, the function can't be triggered by keys. | `string[] \| false` | Array<`'ctrlKey'`\|`'altKey'`\|`'metaKey'`\|`'shiftKey'`> \| `false` | `['altKey', 'shiftKey']` | | ||
@@ -106,3 +106,3 @@ | autoToggle | After opening the function switch, whether automatically close the switch when triggering the jump editor function. | `boolean` | `true/false` | `true` | | ||
new WebpackCodeInspectorPlugin({ | ||
hideSwitch: false, | ||
showSwitch: false, | ||
hotKeys: ['altKey', 'shiftKey'], | ||
@@ -109,0 +109,0 @@ autoToggle: true, |
@@ -94,3 +94,3 @@ <div align="center"> | ||
| ---------- | --------------------------------------------------------------------------------------------------------- | ------------------- | -------------------------------------------------------------------- | ------------------------ | | ||
| hideSwitch | 是否隐藏功能开关 | `boolean` | `true/false` | `false` | | ||
| showSwitch | 是否展示功能开关 | `boolean` | `true/false` | `false` | | ||
| hotKeys | 组合键触发功能,为 `false` 或者空数组则关闭组合键触发 | `string[] \| false` | Array<`'ctrlKey'`\|`'altKey'`\|`'metaKey'`\|`'shiftKey'`> \| `false` | `['altKey', 'shiftKey']` | | ||
@@ -106,3 +106,3 @@ | autoToggle | After opening the function button, whether automatically close the button when triggering the jump editor | `boolean` | `true/false` | `true` | | ||
new WebpackCodeInspectorPlugin({ | ||
hideSwitch: false, | ||
showSwitch: false, | ||
hotKeys: ['altKey', 'shiftKey'], | ||
@@ -109,0 +109,0 @@ autoToggle: true, |
@@ -61,3 +61,3 @@ import { | ||
hotKeys?: HotKey[] | false; | ||
hideSwitch?: boolean; | ||
showSwitch?: boolean; | ||
autoToggle?: boolean; | ||
@@ -64,0 +64,0 @@ } |
32818