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 113 times
0
张俊旭
- 375
- 2
- 7
-
JS code? css code? – Alon Shmiel Jan 29 '22 at 07:53
-
JS code, I want to modify ```Vuetify```. – 张俊旭 Jan 29 '22 at 08:04
-
Here is the solution: https://stackoverflow.com/a/13302095/14671536 Everything is described in this post – Matthieu VETOIS 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
- 1,771
- 2
- 16
- 33