Git Product home page Git Product logo

css-live-reloader's Introduction

CSS Live Reloader

CSS Live Reloader is a firefox extension to ease website CSS development. The extension reloads a page CSS whenever it changes on the server, resulting in something close to live editing of the Cascading Stylesheet.

To detect changes to the CSS, the extension relies on a daemon running on the same webserver the page originated from. The daemon pushes down notifications whenever it detects changes to the CSS.

Even without a notifier running, the extension behaves normally, albeit without the live component. You may press F9 to request a refresh of the current page CSS.

You can see it in action in this demo video:

ScreenShot

Usage

Install the add-on from AMO: https://addons.mozilla.org/en-US/firefox/addon/css-live-reloader/

For simple usage, without live-reload, you are set. Just press F9 to reload the CSS whenever you need.

To get live CSS refresh, you need to install a notifier. Follow the instructions on the page.

After you get the notifier up and running, press F9 to connect the web page to the change notifier. From then on, changes to any CSS file will trigger a refresh of the CSS.

Development

Should you wish to further develop this addon, just fork the repository and clone it to your computer. You'll need to install the Jetpack SDK from Mozilla. Navigate to the root of the git repository and run cfx run. Jetpack will launch a firefox browser in a temporary profile, with the addon installed for testing.

Pull requests are welcome, namely writing notifiers for more platforms. Currently only linux+inotify is written. I'd like to get OSX, BSD and Windows notifiers in the repo.

css-live-reloader's People

Contributors

jalr avatar sergiosgc avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.