hotkeys-js
Advanced tools
Comparing version 1.0.10 to 1.0.11
{ | ||
"name": "hotkeys-js", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.", | ||
@@ -5,0 +5,0 @@ "main": "dist/hotkeys.min.js", |
@@ -27,9 +27,4 @@ # 设置快捷键 | ||
# 在页面上引用需要压缩的话,运行 | ||
$ gulp build && gulp min && gulp map | ||
# 在dist目录中生成下列文件: | ||
# dist/hotkeys.js | ||
# dist/hotkeys.min.js | ||
# dist/hotkeys.min.map | ||
$ npm run build # 编译 | ||
$ npm run watch # 开发模式 | ||
``` | ||
@@ -40,2 +35,10 @@ | ||
传统调用 | ||
``` | ||
<script type="text/javascript" src="./js/hotkeys.js"></script> | ||
``` | ||
包加载 | ||
```js | ||
@@ -42,0 +45,0 @@ import hotkeys from 'hotkeys-js'; |
Sorry, the diff of this file is not supported yet
214
37737