Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Inject css styles instead of reloading page for local server#781

Open
Nibblesh wants to merge 6 commits intogoogle:masterfrom
Nibblesh:feature/css_injection
Open

Inject css styles instead of reloading page for local server#781
Nibblesh wants to merge 6 commits intogoogle:masterfrom
Nibblesh:feature/css_injection

Conversation

@Nibblesh
Copy link
Copy Markdown

No description provided.

@googlebot
Copy link
Copy Markdown

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. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@googlebot
Copy link
Copy Markdown

CLAs look good, thanks!

Comment thread gulpfile.babel.js Outdated
.pipe($.sourcemaps.write('./'))
.pipe(gulp.dest('dist/styles'));
.pipe(gulp.dest('dist/styles'))
.pipe(browserSync.stream({match: '**/*.css'}));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this line for .pipe($.if(bs.active, bs.stream({ match: '**/*.css' })));. Because the gulp task style can be executed without Browsersync.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done =)

@markmssd
Copy link
Copy Markdown

markmssd commented Sep 2, 2016

Awesome! This should really be merged!!

@Nibblesh
Copy link
Copy Markdown
Author

Nibblesh commented Oct 5, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants