问题描述
我尝试在 node_modules 中进行编辑,但文件是从 dist 中获取的,而 src 似乎被忽略了.
I tried editing inside node_modules but the files are taken from dist and src seems to be ignored.
我尝试了 npm run build 以查看是否可以将更改推送到 dist 但这也不起作用,因为似乎缺少其他依赖项.
I tried npm run build to see if I can push my changes to dist but that doesn't work either as other dependencies seem to be missing.
更新:
我按照文档的贡献部分中有关设置 dev env 的说明进行操作.
I followed the instructions about set up dev env in the Contributing section of the docs.
进行了更改并进行了纱线和纱线构建
Made the changes and did yarn and yarn build
但是 dist 文件夹和没有我改动的那个文件夹是一样的
But the dist folder is identical to the one without my changes
是什么?
推荐答案
Contributing 部分中设置 dev env 中的说明.
Instructions in the set up dev env in the Contributing section work.
在克隆的存储库文件夹中运行yarn build"后,您可以将packages/vuetify下dist文件夹的内容复制到正在开发的应用程序的node_modules/vuetify下的dist文件夹中,您的更改就可以测试了.
After running "yarn build" in the cloned repository folder, you can copy the contents of the dist folder under packages/vuetify to the dist folder under node_modules/vuetify of the app being developed and your changes can be tested.
您还可以在包/vuetify 中执行 npm run build 以进行后续更改.
You can also do npm run build inside packages/vuetify for subsequent changes.
这篇关于如何更改 v-slider 组件并在我的应用程序中对其进行测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!