@darkchest/wck 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/readme.md +7 -0
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -55,6 +55,13 @@ npm install @darkchest/wck vite -D
|
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
### 2. 使用示例(重要: 请参考TodoList.vue文件示例, 该文件中已包含所有核心功能并且开箱即用)
|
|
58
|
+
|
|
59
|
+
```javascript
|
|
60
|
+
// 创建一个项目文件夹, 例如helloworld, 然后在文件夹中执行npm init -y初始化一下.
|
|
61
|
+
// 然后我们在文件夹中手动创建vite.config.js, index.html, src/index.js, src/components/TodoList.vue文件
|
|
62
|
+
// 以上文件的内容直接复制下面对应的内容即可.(注意package.json不能复制, 而是手动修改scripts命令的部分, 请看下面的package.json部分)
|
|
63
|
+
```
|
|
64
|
+
|
|
58
65
|
```javascript
|
|
59
66
|
// vite.config.js
|
|
60
67
|
import { defineConfig } from 'vite';
|