NPM install package within a plugin #19705
Labels
answered
For when a question was asked and we referred to forum or answered it.
c: APIs
For bugs and features in the Matomo HTTP and plugin APIs.
c: Documentation
Indicates a need for improvements or additions to documentation.
Hi,
I'm currently working on a plugin and I need to add(import) a package with NPM. I've read through the documentation, but I can't find any way to do from a plugin.
So here's some background info.
I generate a new Vue component with the
./console generate:vue-component
command. I tweak it to my needs and now I want to import or require a package from NPM. Usually I would do anpm install <package_name>
intuitively I would do it from my plugin folder. So I can run the./console vue:build PluginName
command, so I don't get weird dependency issues.What is the best practice around this?
I'm sorry if I couldn't find the info in the docs. Very thankful for any help or pointer I could get.
/Jorge
The text was updated successfully, but these errors were encountered: