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

Refreshing styles with "npm run hot" and sass #233

Closed
Bomavi opened this issue Jan 30, 2017 · 3 comments
Closed

Refreshing styles with "npm run hot" and sass #233

Bomavi opened this issue Jan 30, 2017 · 3 comments

Comments

@Bomavi
Copy link

Bomavi commented Jan 30, 2017

Greetings!

I have an issue with refreshing styles in hot-mode, I don't see any errors, build was successfully compiled, I saw some movements in "Dev Console" and that's it... after that I don't see any changes on the webpage... Anyway, everything fine with Vue refreshing...

webpack.mix.js
mix.sass('resources/assets/sass/app.scss', 'public/css');

index.blade.php
<link rel="stylesheet" href="{{ mix('css/app.css') }}">

I'm doing something wrong?
Thanks

@adriaanzon
Copy link
Contributor

Hot reloading sass isn't supported, see #92 (comment). It's only for javascript modules.

Maybe this should be more explicitly noted in the docs @JeffreyWay

@JeffreyWay
Copy link
Collaborator

I think we're going to implement Browsersync to fix this.

@vedmant
Copy link

vedmant commented Aug 25, 2017

Browsersync isn't really working properly with Vue.js and reloading whole page instead of component.

There is a solution to include app.scss file from the main app.js:

import '../sass/app.scss'

and remove from webpack.mix.js:

.sass('resources/assets/sass/app.scss', 'public/css')

Everything with like a charm in this case.

For production it however will require to configure ExtractTextPlugin.

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

4 participants