-
I saw people writing loader to generate typings for CSS modules:
From my understanding, a loader is run after we have finished writing our code and start the command, e.g. With a loader to generate typings in the last step, we cannot get intellisense by those typings to write code conveniently. What's the point of using a loader to generate typings for CSS Modules then? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
To know the export of modules and all available names, this is not for IDE, this is to avoid mistakes |
Beta Was this translation helpful? Give feedback.
But one has to run
webpack --watch
in watch mode to keep generating new typings, correct? For example, in my workflow currently,I will not run any webpack command before I finish a part of my program.update: Now I understand that these loaders are meant for
--watch
mode.