W
W
woneorb2020-07-14 02:55:57
JavaScript
woneorb, 2020-07-14 02:55:57

How to setup auto-imports of js files in .vue components?

Good night, smart uncles.

I know that it is possible to automatically insert imports of scss files into component styles, I saw this in vue-cli and in the nuxt.js start template (essentially the same vue-cli), for example, variables and mixins
And now it became I’m wondering if it’s possible to configure webpack so that it also substitutes imports when bundled

. In terms of pug, I’m also interested in the same thing, but I’m not sure yet whether the template engine will gain a foothold in the project, since Vue is still used, and whether it makes sense to use it at all. If you have any thoughts on this, I'm happy to discuss under the question

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question