0
votes

I was learning about Laravel Mix that allows us to compile Javascript and CSS files in our project. As I see, in resources/js folder, we can put all the javascript files that should be compiled and in resources/sass folder - all the css files. Using webpacker.mix.js, we import everything in app.js and app.scss but what I want to know is the following: Since, sass files are compiled into CSS, is it possible to import CSS files (and not SASS files) in app.scss? For example, to have this in app.scss:

@import ('css/style.css')

and not

@import ('css/style.scss')

?

1
Yes, this also answered my question, thanks.code_locked

1 Answers

0
votes

Import is not a sass, but a plain css rule. You can use it to import normal css files, yes.