brunch / auto-reload-brunch

Adds automatic browser reloading support to brunch.
88 stars 30 forks source link

Don't reload if autoreload='false' attr is set on stylesheet link #55

Closed shreeve closed 9 years ago

shreeve commented 9 years ago

This allows you to prevent certain stylesheets from reloading when a local stylesheet is changed.

Use like this:

  <link href='//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css' rel='stylesheet' type='text/css' autoreload='false'>
  <link href='/stylesheets/vendor.css' rel='stylesheet' type='text/css'>
  <link href='/stylesheets/app.css' rel='stylesheet' type='text/css'>
paulmillr commented 9 years ago

Awsm! maybe use data-autoreload, it'll be valid HTML then

shreeve commented 9 years ago

Cool... just added, works great!

es128 commented 9 years ago

Could you also document this capability in the readme before we merge this PR?

shreeve commented 9 years ago

Thanks @es128!