Inject css styles instead of reloading page for local server#781
Inject css styles instead of reloading page for local server#781Nibblesh wants to merge 6 commits intogoogle:masterfrom Nibblesh:feature/css_injection
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
|
CLAs look good, thanks! |
| .pipe($.sourcemaps.write('./')) | ||
| .pipe(gulp.dest('dist/styles')); | ||
| .pipe(gulp.dest('dist/styles')) | ||
| .pipe(browserSync.stream({match: '**/*.css'})); |
There was a problem hiding this comment.
Change this line for .pipe($.if(bs.active, bs.stream({ match: '**/*.css' })));. Because the gulp task style can be executed without Browsersync.
…Sync.active for css injection
|
Awesome! This should really be merged!! |
|
Thanks @markmssd! I use this method of css injection in all of my applications as it helps with updating styles of stateful elements or elements that require many steps to be displayed. |
No description provided.