/ matomo Public
NPM install package within a plugin #19705
For when a question was asked and we referred to forum or answered it.
For bugs and features in the Matomo HTTP and plugin APIs.
Indicates a need for improvements or additions to documentation.
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-componentcommand. I tweak it to my needs and now I want to import or require a package from NPM. Usually I would do a
npm install <package_name>intuitively I would do it from my plugin folder. So I can run the
./console vue:build PluginNamecommand, 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.
The text was updated successfully, but these errors were encountered: