bdkjones / CodeKit-1-Old

146 stars 1 forks source link

Ability to set the CSS that must trigger a browser reload #630

Open simon-dt opened 11 years ago

simon-dt commented 11 years ago

I have a project that uses a screen.css and IE8.css. Those are both generated by CodeKit. I have noticed that, when i have both files selected for compilation, the browser reloads after the first css (in my case ie8.css) is created. This means the reload is done before screen.css is created. I have struggled with this for a long time, having to save everything twice before the auto reload picked it up....

Then i disabled the creation of ie8.css.... and it worked like it should...

It would be nice when codekit would reload only after all the files are completed, or, when i could at least select the file that should trigger the reload....

bdkjones commented 11 years ago

Hi Simon,

Completely agreed. Because doing that required massive overhauling of CodeKit's entire workflow, I wasn't able to do it in 1.x. However, 2.0 is already using that approach and the problem won't be an issue much longer. In the meantime, you might try using media queries to target IE rather than a separate stylesheet. Cheers!

-Bryan

On 2013 Jul 02, at 07:33 , Simon notifications@github.com wrote:

I have a project that uses a screen.css and IE8.css. Those are both generated by CodeKit. I have noticed that, when i have both files selected for compilation, the browser reloads after the first css (in my case ie8.css) is created. This means the reload is done before screen.css is created. I have struggled with this for a long time, having to save everything twice before the auto reload picked it up....

Then i disabled the creation of ie8.css.... and it worked like it should...

It would be nice when codekit would reload only after all the files are completed, or, when i could at least select the file that should trigger the reload....

— Reply to this email directly or view it on GitHub.

simon-dt commented 11 years ago

Yea, if only IE8 supported media queries than i didn't have the issue in the first place ;-)

I'll be longing for 2.0 then!

On 3 jul. 2013, at 11:29, bdkjones notifications@github.com wrote:

Hi Simon,

Completely agreed. Because doing that required massive overhauling of CodeKit's entire workflow, I wasn't able to do it in 1.x. However, 2.0 is already using that approach and the problem won't be an issue much longer. In the meantime, you might try using media queries to target IE rather than a separate stylesheet. Cheers!

-Bryan

On 2013 Jul 02, at 07:33 , Simon notifications@github.com wrote:

I have a project that uses a screen.css and IE8.css. Those are both generated by CodeKit. I have noticed that, when i have both files selected for compilation, the browser reloads after the first css (in my case ie8.css) is created. This means the reload is done before screen.css is created. I have struggled with this for a long time, having to save everything twice before the auto reload picked it up....

Then i disabled the creation of ie8.css.... and it worked like it should...

It would be nice when codekit would reload only after all the files are completed, or, when i could at least select the file that should trigger the reload....

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.