Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cycjimmy/h5-webpack-starter
H5 webpack starter for webpack, es6/7, sass, pug, swiper...
https://github.com/cycjimmy/h5-webpack-starter
animation audio h5 swiper webpack
Last synced: 15 days ago
JSON representation
H5 webpack starter for webpack, es6/7, sass, pug, swiper...
- Host: GitHub
- URL: https://github.com/cycjimmy/h5-webpack-starter
- Owner: cycjimmy
- License: mit
- Created: 2017-07-04T05:25:01.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-09-15T04:27:33.000Z (2 months ago)
- Last Synced: 2024-09-15T09:06:43.830Z (2 months ago)
- Topics: animation, audio, h5, swiper, webpack
- Language: JavaScript
- Homepage: https://cycjimmy.github.io/h5-webpack-starter/
- Size: 5.49 MB
- Stars: 10
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# H5 Webpack Starter
![][workflows-badge-image]
[![libraries dependency status][libraries-status-image]][libraries-status-url]
[![Release date][release-date-image]][release-url]
[![webpack][webpack-image]][webpack-url]
[![semantic-release][semantic-image]][semantic-url]* A webpack starter for H5 building. [Demo][github-pages-url]
## Features
* Easily build H5 pages.
* Perfect for loading service.
* Easily run animation.
* Install components according to your needs.## Based On
* [Swiper](https://github.com/nolimits4web/Swiper)
* [H5 Pages](https://github.com/cycjimmy/h5-pages) **(Core Component)**
* [H5 Preloader](https://github.com/cycjimmy/h5-preloader)
* [Swiper Animation](https://github.com/cycjimmy/swiper-animation)
* [Animate.css](https://github.com/daneden/animate.css)
* [Fastclick](https://github.com/ftlabs/fastclick)## Other Recommended Components
* [H5 Audio Controls](https://github.com/cycjimmy/h5-audio-controls)
* [JSMpeg Player](https://github.com/cycjimmy/jsmpeg-player)
* [H5 Video Player](https://github.com/cycjimmy/h5-video-player)
* [Weixin Share](https://github.com/cycjimmy/weixin-share)## Installation
```shell
$ pnpm install
# or
$ npm install
# or
$ yarn install
```## Main directory structure
```text
h5-webpack-starter
│
├─app/ # Project entry folder
│ ├─pages/ # Pages folder
│ ├─popups/ # Popups folder
│ ├─preloader/ # Preloader component folder
│ ├─theme/ # Global and public styles
│ ├─shared/ # Public component or method
│ ├─setting.config.json # Global setting config
│ └─...
├─mock/ # Mock data entry folder
│ ├─api/
│ └─webSocket/
├─static/ # Static folder
│ ├─media/ # Media folder
│ ├─images/ # Pictures folder
│ │ ├─noUrl/
│ │ └─...
│ ├─view/ # Static pug template folder
│ │ └─...
│ └─favicon.ico # Icon file
├─webpack/ # Webpack configuration folder
│ ├─browserSync.config.js # BrowserSync config file
│ ├─postcss.config.js # Postcss config file
│ ├─styleLoaders.config.js # Loader configs file for styles
│ └─... # Webpack configuration files
└─...
```## Main Tasks
```shell
# Run in development
$ npm start# Build for production
$ npm run build
# or
$ npm run build:watch
```[workflows-badge-image]: https://github.com/cycjimmy/h5-webpack-starter/workflows/Test%20CI/badge.svg
[libraries-status-image]: https://img.shields.io/librariesio/release/github/cycjimmy/h5-webpack-starter
[libraries-status-url]: https://libraries.io/github/cycjimmy/h5-webpack-starter[release-date-image]: https://img.shields.io/github/release-date/cycjimmy/h5-webpack-starter
[release-url]: https://github.com/cycjimmy/h5-webpack-starter/releases[webpack-image]: https://img.shields.io/github/package-json/dependency-version/cycjimmy/h5-webpack-starter/dev/webpack
[webpack-url]: https://github.com/webpack/webpack[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[semantic-url]: https://github.com/semantic-release/semantic-release[github-pages-url]: https://cycjimmy.github.io/h5-webpack-starter/