如何在docpad中禁用livereload插件

时间:2013-10-18 22:56:38

标签: docpad livereload

我看到我必须将liveReload插件设置为false,但不确定在何处设置它。在docpad.coffee中有某个插件配置部分

1 个答案:

答案 0 :(得分:6)

在docpad项目的根文件夹中编辑docpad.coffee文件(或docpad.js)

docpadConfig:
    ...
    # enabled example for live configuration
    plugins:
        livereload:
            enabled: true

    # enabled example for different environments
    environments:
        development: # change the name here if you have other environments
            plugins:
                livereload:
                    enabled: true
        staging: # change the name here if you have other environments
            plugins:
                livereload:
                    enabled: true
    ...

有关配置文件的更多信息,请访问http://docpad.org/docs/config