构建 npm (yarn) 时如何设置自动版本控制?
我想在构建用 vue 编写的纱线项目时通过 javascript 浏览器进行缓存来解决项目中长期存在的问题。
我希望在纱线构建期间将随机盐添加到文件中,并向坐在站点上的用户显示警报。
如何通过组装添加随机盐?我找不到它。关于版本控制,我还没有想出更好的方法来在客户端和要检查的服务器上存储版本,也就是说,每个构建都假设服务器上的版本增加,当您单击更新协议,客户端版本会增加。
I want to solve a long-standing problem in my project with caching by the javascript browser when building a yarn project written in vue.
I want a random salt to be added to the files during yarn build and an alert would be displayed to the user who is sitting on the site.
How do I add random salt through assembly? I can't find it. Regarding versioning, too, I have not yet come up with a better way to store versions on the client and on the server that would be checked, that is, each build assumes an increase in the version on the server and when you click on the update agreement, the version on the client would increase.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论