M
M
MortSith2021-09-02 00:55:25
JavaScript
MortSith, 2021-09-02 00:55:25

How to connect a plugin via import from the node_modules folder without including it in the finished project?

Let's say I'm importing a js file from node_modules into my main main.js. There will be no node_modules folder in the folder with the finished project, which means import will lead to nowhere, how to actually save the information of the imported plugin

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Belyaev, 2021-09-02
@MortSith

Use a bundler like webpack or rollup

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question