Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS Injection を有効化したい #22

Open
lig-dsktschy opened this issue Jan 31, 2020 · 2 comments
Open

CSS Injection を有効化したい #22

lig-dsktschy opened this issue Jan 31, 2020 · 2 comments

Comments

@lig-dsktschy
Copy link
Contributor

CSS変更時のLive Injectionを有効にしたい

@lig-dsktschy
Copy link
Contributor Author

lig-dsktschy commented Jan 31, 2020

これだ。
liginc/laravel-mix-boilerplate-wordpress#9

BrowserSyncは、SVG, CSSの変更に対して、Reloadでなく、Injectionを実行する。
SVG Spriteの変更を画面に反映するためには、Reloadが必要。
Injectionの有効・無効は、SVG, CSSのそれぞれに個別設定できない。
SVG, CSS両方を、画面に変更反映するには、SVG, CSS両方のInjectionを無効化する必要がある。

@lig-dsktschy
Copy link
Contributor Author

BrowserSync execute injection for CSS and SVG, without reloading.
But to apply changes of SVG sprite to screen, we need reloading.
BrowserSync's injectChanges option affects to both of CSS and SVG.
So to apply changes both of CSS and SVG sprite to screen, we need set injectChanges option to false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant