https://github.com/ambar/new-mina
https://github.com/ambar/new-mina
gogen mina weapp wechat wxa wxapp
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ambar/new-mina
- Owner: ambar
- Created: 2018-03-01T03:55:17.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2022-12-11T22:55:45.000Z (over 2 years ago)
- Last Synced: 2025-02-18T03:33:57.179Z (3 months ago)
- Topics: gogen, mina, weapp, wechat, wxa, wxapp
- Language: JavaScript
- Homepage:
- Size: 2.94 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# new-mina
使用 [mina 单文件组件](https://tina.js.org/#/guide/single-file-component)的微信小程序脚手架。
## 使用
创建一个新的小程序(确保安装了 [Node.js](https://nodejs.org)):
```sh
npx new-mina myapp
cd myapp
npm start
```打开[微信开发者工具](https://mp.weixin.qq.com/debug/wxadoc/dev/devtools/download.html),创建一个新项目,指向编译出来的 `dist` 目录。
## 附
你可以在项目根目录新建一个 `mina.config.js` 来修改 webpack 配置:
```js
module.exports = {
webpack: {
plugins: [],
},
}
```