E
E
Eugene2021-11-07 12:47:44
Vue.js
Eugene, 2021-11-07 12:47:44

How to create a separate css, js for a separate layout and not connect the main one?

Such a question, tell me how to connect only your own separate js and css to a specific template?
For example, on the login pages to the system, why should I immediately load all the css or show the main js.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2021-11-07
@Aetae

Vue supports dynamic component loading .
The component is loaded in this way, like any code connected by webpack through dynamic import(), will be in a separate js file, which will be loaded only when asked.
You can also set up Vue pages , then the code will be split into one common js file where everything that is used on each page and separate files for each page are located.
can be combined.)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question