Skip to content

压缩h5上线文件,先创建项目,然后吧第三方项目拷贝进来,gulp压缩

Notifications You must be signed in to change notification settings

datworkcn/minify-h5-gulp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

webpack-simple

A simple Vue 2.0 Webpack & vue-loader setup for quick prototyping. Note this template is not suitable for production - for that you may want to use the full webpack template.

This template is Vue 2.0 compatible. For Vue 1.x use this command: vue init webpack-simple#1.0 my-project

Usage

This is a project template for vue-cli.

$ npm install -g vue-cli
$ vue init johnnychn/h5-mobile-template my-project
$ cd my-project && npm install
$ npm run dev


you can import more files like this:

  const requireContext = require.context("assets/img", true, /^\.\/.*\.png$/);
  const images = requireContext.keys().map(requireContext);

What's Included

  • npm run dev: Webpack + vue-loader with proper config for source maps & hot-reload.

  • npm run build: build with HTML/CSS/JS minification.

For detailed explanation on how things work, consult the docs for vue-loader. Also check out the breaking changes in vue-loader@9.0.0.

Fork It And Make Your Own

You can fork this repo to create your own boilerplate, and use it with vue-cli:

vue init username/repo my-project

About

压缩h5上线文件,先创建项目,然后吧第三方项目拷贝进来,gulp压缩

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published