configuring CSS Modules has no effect.
when you try to configure it like the official website document, add this code, all css styles will fail
configuration figure:
modules
modulesheader
configuring CSS Modules has no effect.
when you try to configure it like the official website document, add this code, all css styles will fail
configuration figure:
modules
modulesheader
in fact, I didn't express my thoughts clearly this time.
paid to ask the question, I got a satisfactory reply.
when modules is enabled, all selectors are redefined, so the matching of page elements is messed up
. As for the style of header, it is not enabled because the original configuration is written in vue-loader.config.js. Later, I forgot to turn on camelCase.
here is another way to write it: class= "$style ['main-header']"
modify: yesterday I found that it is useless to configure css option in vue-loader, and it is useless to further configure js:babel,eslint after cannot extract css . My definition of useless is that it cannot be run in ie11 I have already configured ...
there is a problem of not recognizing the attribute vue for beginners of vue and webpack,. I have added {test: .vue$ ,use: vue-loader } to rules and also installed vueloader and vue-template-compiler with a warning and an error, as shown in the foll...
1.webpack parses .vue into a js, so how does vue register this js as a component 2. Whether this component is a global component or a local component 3. If it is a local component, how is it injected ...