8000 Fix <style> hot-reload not working by MartinBucko · Pull Request #252 · meteor-vue/vue-meteor · GitHub
[go: up one dir, main page]

Skip to content

Fix <style> hot-reload not working #252

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

Merged
merged 4 commits into from
Jan 27, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix <style> hot-reload not working
Code changes inside <style> tag in .vue file don't emit CSS update to client.
Bug confirmed on meteor-vue/vue-meteor-demo.
  • Loading branch information
Martin Bučko authored Sep 14, 2017
commit e916f705d7ca00d0316b68232fe12a4333934a0d
2 changes: 1 addition & 1 deletion packages/vue-component/plugin/vue-compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ VueComponentCompiler = class VueCompo extends CachingCompiler {
if (css) {
if (isDev) {
// Add style to client first-connection style list
global._dev_server.__addStyle({ hash: vueId, css, path: inputFilePath }, false);
global._dev_server.__addStyle({ hash: vueId, css, path: inputFilePath }, true);
} else if (!isLazy) {
// In order to avoid lazy-loading errors in --production mode, addStylesheet must come after addJavaScript
this.addStylesheet(inputFile, {
Expand Down
0