加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – 在Rails中禁用资产预编译功能

发布时间:2020-12-16 21:50:19 所属栏目:百科 来源:网络整理
导读:我想在rails中禁用资产预编译功能. 我正在使用用户可以下载代码的应用程序,我想避免更改下载的html文件中的css和js文件的名称 – 以便用户可以运行index.html并查看所有内容. 这是应用程序: http://impress-builder.herokuapp.com/ 解决方法 看看 The Asset
我想在rails中禁用资产预编译功能.
我正在使用用户可以下载代码的应用程序,我想避免更改下载的html文件中的css和js文件的名称 – 以便用户可以运行index.html并查看所有内容.

这是应用程序:
http://impress-builder.herokuapp.com/

解决方法

看看 The Assets Pipeline指南.

The asset pipeline is enabled by default. It can be disabled in
config/application.rb by putting this line inside the application
class definition:

config.assets.enabled = false

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读