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

Hot Module Replacement #71

Closed
skyrpex opened this issue Nov 19, 2015 · 2 comments
Closed

Hot Module Replacement #71

skyrpex opened this issue Nov 19, 2015 · 2 comments

Comments

@skyrpex
Copy link

skyrpex commented Nov 19, 2015

Is there a way to use the Hot Module Replacement having my component split into three files (JS, HTML and CSS)?

I ask this because I'd really love to keep the Atom's linters working on my code... Thanks.

@yyx990803
Copy link
Member

HMR really depends on Webpack knowing that a file is a Vue component, so you must use the Vue format as the base. But there's one hacky way to do it: use src import for CSS, and just import and re-export another JS file in <script>.

@skyrpex
Copy link
Author

skyrpex commented Nov 19, 2015

Thanks for the info. Will do that.

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

2 participants