1.4.4 • Published 6 years ago

h5-webpack-generator v1.4.4

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

H5应用的Webpack脚手架

这是一个快速搭建h5应用开发环境和打包的webpack脚手架。

安装

$ npm install -g h5-webpack-generator

开始

创建应用:

$ h5-webpack  /tmp/foo && cd /tmp/foo

安装 devpendencies:

$ npm install

启动开发环境服务: http://localhost:3000/:

$ npm run dev

打包:

$ npm run build

如果想使用webpack-bundle-analyzer插件,请使用:

$ npm run build --report

命令行参数

-v, --version       output the version number
-m, --multiple      add multiple pages support

版本

  • 1.2.0: 把babel-preset-es2015替换成babel-preset-env
  • 1.3.0: 去掉对ts和coffeescript、sass的支持,默认支持es2015和less,添加对webpack-bundle-analyzer插件的支持
  • 1.3.2: 对多页面配置的优化
  • 1.3.3: 对dev环境webpack配置优化
  • 1.3.4: 开发环境使用NamedModulesPlugin,生产环境使用HashedModuleIdsPlugin,可以减小打包后的文件大小
  • 1.3.5:针对缓存持久化做一些修复,生成稳定的ChunkId和ModuleId
  • 1.3.6: 使用inline-manifest-webpack-plugin插件把manifest打包到html里面
  • 1.4.0: 去除--cache参数,改为默认
2.0.0

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.8

6 years ago

1.3.7

6 years ago

1.3.6

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago