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

Sourcemaps not generated for imported styles #116

Open
kbkk opened this issue Feb 28, 2017 · 3 comments
Open

Sourcemaps not generated for imported styles #116

kbkk opened this issue Feb 28, 2017 · 3 comments

Comments

@kbkk
Copy link

kbkk commented Feb 28, 2017

"sass-loader": "^6.0.2",
"node-sass": "^4.5.0",

import './scss/bootstrap.scss'

The SCSS compiles but the sourcemaps aren't generated. However, they are generated for <style> tags in .vue files. I spent a lot of time on it today and I wasn't able to fix it.

@egoist
Copy link
Owner

egoist commented Feb 28, 2017

you can use <style src=" ./scss/bootstrap.scss"><style> for now.

@kbkk
Copy link
Author

kbkk commented Feb 28, 2017

Your solution almost worked 👍

You must set appropiate language in the "lang" attribute

here's an example
<style lang="scss" src="scss/bootstrap/bootstrap.scss"></style>

@fchienvuhoang
Copy link

Hi @egoist I'm using style link to bootstrap styles and js too, but when run npm run build, i see message WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (250 kB). This can impact web performance. Entrypoints: client (900 kB) Have any problem?

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

3 participants