新手问题 css 的路径配置问题

luliangshu · March 16, 2014 · Last by quincycheung replied at March 17, 2014 · 1816 hits

当我在使用 sass 来压缩文件时

config.assets.css_compressor = :sass

我在 public 路径中 有如下类似的文件

public/node/3/styleshhets/custom.3.css

也就是针对用户定制的 其中的 3 就代表用户 id

那么我该如何在 config 文件中来配置这个动态的路径 才能压缩他

在 application.rb 中添加

config.assets.precompile << Rails.root.join('public', 'node')
You need to Sign in before reply, if you don't have an account, please Sign up first.