Sublime Text3



  • I need LiveReload tracking certain types of files, not all. This code is now in the user designs:

    {
      "enabled_plugins": [
          "SimpleReloadPlugin",
          "SimpleRefresh"
      ]
    }
    


  • One of the solutions could be thrown out. server LiveReload, which supports a package for Sublime Text. It's not the only implementation of LiveReload-Server.

    https://github.com/guard/guard-livereload : Guard logic to act when changing files. It's written on Ruby, and that's why Ruby's assigned to work. The installation procedure is minimally different from other forms for Guard, https://ru.stackoverflow.com/a/540214/181100 ♪

    Guardfile It's possible to set up paths that change the files for which LiveReload will signal to the client. There is an example in README:

    guard 'livereload' do
      watch(%r{app/views/.+\.(erb|haml|slim)})
      watch(%r{app/helpers/.+\.rb})
      watch(%r{public/.+\.(css|js|html)})
      watch(%r{config/locales/.+\.yml})
    end
    

    The code is higher, of course, on Ruby. Each line watch Adds to regular tracks on the root of the project (working directory where it is launched) guard) Regular recording /так/%r{так}or other ways. The expression can be checked. http://rubular.com/ or simply in Interactive Ruby (IRB).

    Guard can also be downloaded with other tasks related to the response to the change of files.
    https://github.com/guard/guard/wiki/Guard-Plugins ♪




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2