kunstmaan/live-reload-bundle

KunstmaanLiveReloadBundle 将 grunt-contrib-watch 插件的 livereload 脚本注入到您的 HTML 页面中。

安装次数: 27,484

依赖项: 0

建议者: 0

安全性: 0

星标: 22

关注者: 16

分支: 2

类型:symfony-bundle

4.0.0-RC1 2016-04-22 07:23 UTC

README

Build Status Total Downloads Latest Stable Version Analytics

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 的默认选项。