Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to import scss file in angular

In the new angular v6, importing sass files is a little different from the previous version.

I just needed to import like this (in a component stylesheet)

@import "~src/sass/variables";    // note: without file extension

Now everything works fine

Thanks all for the help
Comment

PREVIOUS NEXT
Code Example
Javascript :: regex match any character 
Javascript :: range command in JS 
Javascript :: tailwindcsss next js change font 
Javascript :: angular countdown begin stop pause 
Javascript :: javascript addeventlistener button 
Javascript :: checkbox react 
Javascript :: javascript function return boolean 
Javascript :: function prototype in javascript 
Javascript :: node-schedule job on specific datetime 
Javascript :: react class components 
Javascript :: print an object in javascript 
Javascript :: remove storybook from project 
Javascript :: send data using fetch 
Javascript :: nodejs create stream 
Javascript :: javascript append list 
Javascript :: chrome block javascript alert 
Javascript :: javascript scroll 
Javascript :: is promise 
Javascript :: how to convert decimal to roman in javascript 
Javascript :: p5.js typescript 
Javascript :: swap scroll right in react native 
Javascript :: how to turn decimales into percents with javascript 
Javascript :: check if all values in array are zero javascript 
Javascript :: array with object same keys 
Javascript :: angular injectiontoken 
Javascript :: optional function parameter javascript 
Javascript :: javascript update multiple values of an object 
Javascript :: check last url in javascript 
Javascript :: join in javascript 
Javascript :: node js require file in parent directory 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =