R
R
Roweb2022-02-10 23:53:59
Vue.js
Roweb, 2022-02-10 23:53:59

What is import files in Vue cli?

You can export modules in regular js files. In one-file Vue components, there is an import of not only js modules, but also various files - css, pictures.
How is it internally arranged?
Who handles this import? webpack?
What does it mean to import css or images into a vue component?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LJ322, 2022-02-11
@LJ322

The vue-loader is responsible for importing into single-file components . And yes, import styles, svg, etc. handle the appropriate webpack loaders

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question