G
G
Gregory2017-10-09 12:37:19
JavaScript
Gregory, 2017-10-09 12:37:19

How to edit plugins and modules downloaded via npm?

Good afternoon. I am writing an application in vue.js. Faced the need to add my own directives to the current markup of downloaded plugins. But the saved changes are not displayed.
More details: I
installed the calendar module for the site via npm. I need to add various directives to his template.
I got into the sources along the path node-modules/vue-event-calendar/template.vue
There is the html markup of the calendar, I changed it as I needed and saved it.
After in the console I launched the local server npm run dev .
I opened the developer panel in the browser to see the markup and my changes are not there.
How can I make changes to these sources?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2017-10-09
@Groyreg

Climbed right, read more readme how to build this package. Surely, the author keeps the template in one place, and the final "library" is collected in one file. Therefore, you need to "build" this project by making changes to the template.
As mentioned above, when you (or someone else) tries to download this module from npm, the changes will be lost. Therefore, you can either fork and specify a link to your repository in package.json, or (if the functionality is good) fork and send a pull request to the author.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question