Closed deepslam closed 4 years ago
I solved it guys. I just had to create the definition file with these lines:
declare module '*.scss';
declare module '*.css';
But I still do not have an autocompletion in IDE when I import style object.
Hi Dmitry!
Unfortunately, this use case is not supported natively by the tooling that supports CSS imports. I can find some loaders that offer this feature, but you'll have to implement it yourself. To get you started, this is the rough gist.
You will need to override Laravel Mix's webpack configuration using this method. You can find out roughly how that works here.
I'll close the issue for now, but let me know if you need any help with your problems.
Cheers! Lei
Thank you so much!
Hello!
I'm trying to use your module, but it seems that it doesn't work with my setup. Here's my setup in webpack.mix.js
As you can see, I use TypeScript. Hereafter I try to import my scss file from my tax component following way:
import Css from './Loader.scss';
And I get this error:
It's a pretty new project, therefore, I use laravel mix v.5 How can I fix it? Help me, please.
-- Regards, Dmitry