Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xmasuhai/pikachu
预览连接:https://xmasuhai.xyz/pikachu/dist/index.html
https://github.com/xmasuhai/pikachu
canvas-animation scss svg svg-animations
Last synced: 17 days ago
JSON representation
预览连接:https://xmasuhai.xyz/pikachu/dist/index.html
- Host: GitHub
- URL: https://github.com/xmasuhai/pikachu
- Owner: xmasuhai
- Created: 2020-07-01T22:58:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-19T05:59:26.000Z (over 3 years ago)
- Last Synced: 2023-03-06T17:10:29.907Z (almost 2 years ago)
- Topics: canvas-animation, scss, svg, svg-animations
- Language: JavaScript
- Homepage: https://xmasuhai.xyz/pikachu/dist/index.html
- Size: 179 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 使用说明
## 开发
```bash
yarn global add parcel-bundler
parcel src/index.html
```## build 命令
```bash
yarn build
```## 部署方式
- 每次改完代码,必须运行这一行,才能正确的请求 JS 和 CSS:
```bash
parcel build src/index.html --public-url .
```## yarn build 一键发布
> 再次build的时,只需用`yarn init -y` 创建`package.json`
- 在`package.json`中加一段脚本
```JavaScript
"scripts": {
"build":"rm -rf dist && parcel build src/index.html src/index.html --no-minify --public-url ./"
},
```再次 `yarn build`
---
## 画一只皮卡丘
- 预览链接:[http://xmasuhai.xyz/pikachu/dist/index.html](http://xmasuhai.xyz/pikachu/dist/index.html)
## 会动的代码
- 预览链接:[http://xmasuhai.xyz/pikachu/dist/test.html](http://xmasuhai.xyz/pikachu/dist/test.html)