Package Exports
- generator-zyy-h5
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (generator-zyy-h5) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
H5 Small Project Generator Based on Webpack and Gulp
- H5 is increasingly popular, in order to facilitate the development of future convenience, hereby write a template generator for future use
- The use of @@ include in HTML supports the introduction of an .inc file
- In the CSS file can be used to scss
- Js in the use of webpack merge the public module, you can have any entry file
- Development can automatically start the Chrome browser, and open the local 3000 port to debug
USAGE
install yo
npm install -g yoinstall H5 template
npm install -g generator-zyy-h5Create a new project directory and enter
mkdir my-new-h5 && cd $_Use the H5 template
yo zyy-h5Development
gulp devRelease (will compress the css and js, and increase md5)
gulp distISSUE
node-sass installation failed Solution: because the installation of node-sass when it github Releases are hosted in the file s3.amazonaws.com above, and this site is always in the country network is not Stable, so we Taobao mirror to download this file.
Directly run the following command
SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/ npm install node-sass && npm install gulp-sassLicense
MIT © zanseven007