Open kaghaffa opened 8 years ago
Some additional findings:
It looks like requirejs-rails
is successfully minifying my JS files individually in my app's tmp/requirejs/dst
directory, but these files aren't joined together to create the application-HASH.js
file.
I found the issue.
There was a syntax error with my JavaScript source that was silently failing the build. It was only when I added logLevel: 0
to my requirejs.yml file that I was able to see the error Unexpected token operator «=», expected punc «,» (line: 11, col: 37, pos: 276)
.
Hi, I'm using requirejs-rails version 0.9.8 on Rails 4.0.13. I'm running into an issue where requirejs is concatenating all of my JS files, but not minifying them.
Here's my requirejs.yml file:
And after running
rake assets:precompile RAILS_ENV=production
, I look intopublic/assets
for theapplication-HASH
file and see that it's just a big file with all of the JS concatenating. Here's my production.rb file as well:Any insights would be very helpful. Thank you