kunstmaan / live-reload-bundle
KunstmaanLiveReloadBundle 将 grunt-contrib-watch 插件的 livereload 脚本注入到您的 HTML 页面中。
4.0.0-RC1
2016-04-22 07:23 UTC
Requires
- php: >=5.4.0
- guzzle/guzzle: ~3.9
- symfony/framework-bundle: ~2.3
- dev-master / 4.0.x-dev
- 4.0.0-RC1
- 3.5.x-dev
- 3.5.1
- 3.5.0
- 3.4.x-dev
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.x-dev
- 3.3.4
- 3.3.3
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.x-dev
- 3.2.6
- 3.2.5
- 3.2.4.1
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2.1.1
- 3.2.1
- 3.2.0
- 3.1.x-dev
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.x-dev
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- v2.3.6
- v2.3.5
- v2.3.4
- v2.3.3
- v2.3.1
- v2.3
- v1.0.0
- dev-revert-1243-hotfix/generator-translations
- dev-sf3
- dev-fix-sensiolabs-insight
This package is auto-updated.
Last update: 2024-08-29 04:36:54 UTC
README
KunstmaanLiveReloadBundle 通过将来自 grunt-contrib-watch 插件的 livereload 脚本片段注入到您的开发环境中的 HTML 中,使您的生活更加轻松。请参考 grunt-contrib-watch 的文档,了解如何配置 livereload,然后使用此包自动将 livereload 片段注入到您的开发环境中的 HTML 中。
关于我们包的更多信息:http://bundles.kunstmaan.be。
如何安装?
composer.json
"require": { "kunstmaan/live-reload-bundle": "1.0.*" },
AppKernel.php
public function registerBundles() { $bundles = array( // ... new Kunstmaan\LiveReloadBundle\KunstmaanLiveReloadBundle(), // ... );
配置您的 Gruntfile 以使用 grunt-contrib-watch 监视某些文件,并不要忘记将 livereload 选项 设置为 true
。
配置
此包有某些可用的配置选项
kunstmaan_live_reload: enabled: true host: localhost port: 35729
默认情况下使用 grunt-contrib-watch 的默认选项。