【发布时间】:2013-06-28 23:01:37
【问题描述】:
我在尝试预编译我的 Rails 应用程序资产时遇到此错误:
Unexpected token: operator (*) (line: 424, col: 9, pos: 14566)
我有许多单独的 CSS 和 JS 资产文件。我怎么知道这个错误的“*”标记是在哪一个中发现的?
xxx $ rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Execute assets:precompile
xxx
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
rake aborted!
Unexpected token: operator (*) (line: 424, col: 9, pos: 14566)
【问题讨论】:
-
我想我可以在预编译资产时将它们全部删除并一一添加。但有更快的方法吗?
标签: ruby-on-rails asset-pipeline