FAQ
But for index.styl
, its job is to override the default styles of application. According to the priority principle of CSS, the later style has a higher priority, so it should be generated at the end of the CSS file.
The difference is that the files generated by will be loaded and applied automatically when the application is initialized on the client-side, while the files generated by clientDynamicModules
need to be imported as by the users themselves.
- I want to execute some code on the client-side automatically.
- I don’t need to reuse this module.Example:
- @vuepress/plugin-register-components
: Automatically registering components on the client-side.
- I want to generate a dynamic module that needs to be invoked at a specific time.
- I want to use this module in different modules.Example:
- : Using compile-time metadata to generate some dynamic blog-related modules and initialize them on the client-side by using
enhanceAppFiles
.