question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to import SASS with root path?

See original GitHub issue

I’m trying to import a SASS partial, like so:

<style scoped lang="sass">
@import 'assets/sass/colors.scss';
</style>

It doesn’t resolve though.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
centrualcommented, May 4, 2017

scss is another lang inside of sass. So scss different than sass. I updated the package for scss support in one page component:

<style scoped src="./assets/sass/colors.scss" lang="scss"></style>
0reactions
adi518commented, Jun 12, 2018

Yes

Read more comments on GitHub >

github_iconTop Results From Across the Web

SCSS Import Relative to Root - angular - Stack Overflow
For example, let's say I have the file src/_mixins.scss in the root of my application and the component src/app/my-widget/my-widget.component.
Read more >
Sass: @import
All Sass implementations allow users to provide load paths: paths on the filesystem that Sass will look in when resolving imports. For example,...
Read more >
[SOLVED] Is there a shortcut to root (/) for importing CSS/SCSS?
I tried using @import "/both/styles/variables.import.scss" but that errors out. Is there some way to refer to root in a Meteor project?
Read more >
Importing scss files using tilde (~) as in webpack to specify a ...
Webpack lets you specify the project's root and then tilde (~) is used to import scss files relative to the root set in...
Read more >
Working of Import Directory in SASS with Examples - eduCBA
Now create an scss file with name import_demo.scss and put the below code. ... Put the above both two files in the root...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found