all! I currently met a difficulty with my project. I want to modify the code of a component from a UI library (like Semantic-UI, Material-UI). What I do now is just edited the code from the node_modules
. But the reality is no matter how I change the code from node_modules, my project will not be affected. Why this will
Asked
Active
Viewed 1,861 times
0

leo0807
- 941
- 1
- 8
- 21
-
JS code? css code? – Alon Shmiel Jan 29 '22 at 07:53
-
JS code, I want to modify ```Vuetify```. – leo0807 Jan 29 '22 at 08:04
-
Here is the solution: https://stackoverflow.com/a/13302095/14671536 Everything is described in this post – mvetois Jan 29 '22 at 08:32
1 Answers
0
Well that's because most modules have build process which you need to run before using them. Also editing a module directly is not a good idea because any change you do to them is guaranteed to be lost after next npm install
.
As Vuetify is a MIT licensed, I suggest to fork its GitHub project and then publish it as your own npm package.

omidh
- 2,526
- 2
- 20
- 37