如何从Rails应用程序中完全删除Yarn? [英] How to remove Yarn from a Rails app completely?

查看:54
本文介绍了如何从Rails应用程序中完全删除Yarn?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 jQuery 和其他一些库来构建Rails 5.1.x Rails应用程序.Rails坚持要使用Yarn,这在开发机器上很好用,但我不能在生产中使用.

I'm building a Rails 5.1.x rails app with jQuery and a few other libraries. Rails is insisting on having Yarn on, which is fine on development machine but I cannot have it on production.

有没有一种方法可以使Rails在默认情况下不使用Yarn?删除 yarn.lock node_modules 及其附带的所有其他内容.

Is there a way to not have rails use Yarn by default? Remove yarn.lock and node_modules and everything else that comes with it.

推荐答案

创建Rails项目时,您可以添加-skip-yarn ,因为 rails新的app_path --skip-纱线.

When you create a rails project, you can add --skip-yarn as rails new app_path --skip-yarn.

这篇关于如何从Rails应用程序中完全删除Yarn?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆