I built new vue app with typescript using Vue Cli 3.
When I try to import css or sass to my typescript file:
import * as sassStyles from '@/assets/sass/my.module.scss';
I got followning error:
Cannot find module
I found this article How to use CSS Modules with TypeScript and webpack but I have no idea how to integrate it with Vue Cli 3 who is abstracting away webpack config.
Any idea what to put in vue.config.js to able to import css and sass files directly to block?
I need to use typings-for-css-modules-loader
instead of css-loader
.
sassStyles
) – tony19