bravesheep/live-reload-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bravesheep/live-reload-bundle

最新稳定版本:v0.1.0

Composer 安装命令:

composer require bravesheep/live-reload-bundle

包简介

Automatically include the live reload script in Symfony

README 文档

README

A Symfony bundle that automatically includes a link to the livereload script in any html response (based on configuration).

Inspired by the KunstmaanLiveReloadBundle.

Installation and configuration

Using Composer add the bundle to your dependencies using the require command. This command adds the bundle only for development purposes:

composer require --dev bravesheep/live-reload-bundle

Add the bundle to your AppKernel

Add the bundle in your app/AppKernel.php. To add it to just your development bundles:

public function registerBundles()
{
    // ...

    if (in_array($this->getEnvironment(), ['dev', 'test'])) {
        // ...
        $bundles[] = new Bravesheep\LiveReloadBundle\BravesheepLiveReloadBundle();
    }
    // ...
}

Configure the bundle

The bundly does not need any configuration and should work right away. However you can customize some settings, you can adjust the default configuration as shown below:

bravesheep_live_reload:
    enabled: yes
    host: ~
    port: 35729

You may want to parameterize the enabled flag to allow individual developers to pick whether or not to enable livereload:

bravesheep_live_reload:
    enabled: %livereload%

And in your app/config/parameters.yml:

parameters:
    livereload: yes

统计信息

  • 总下载量: 21.31k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-06-21