requirejs-rails
requirejs-rails copied to clipboard
RequireJS support for your Rails 3 or 4 application
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...
I'm getting the following error after upgrading from Rails 4.2.5 to 4.2.5.1. Any ideas what might be wrong? ``` NoMethodError: undefined method `paths' for nil:NilClass /Users/samstarling/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/requirejs-rails-1.0.0/lib/tasks/requirejs-rails_tasks.rake:55:in `block (2 levels) in...
The mechanism for lookup up precompiled assets and logical names appears to have changed significantly in Sprockets 3. Calls such as each_logical_path do not even exist any more. I'll attempt...
I am using requirejs-rails newest version 1.0.0 and sprockets-rails 3.0.4 Still using version sprockets-rails 2.3.3 to fix the bug it shows the error : Sprockets::Rails::Helper::AssetNotPrecompiled in Home#index Asset was not...
I have set up a shim config for my application in `config/requirejs.yml`, such as: ``` YAML shim: jquery: exports: 'jQuery' jquery_ujs: deps: ['jquery'] 'bootstrap': ['jquery', 'jquery_ujs'] 'twitter/bootstrap/rails/confirm': deps: ['bootstrap', 'jquery_ujs']...
As I understand it, `require.js`' [`paths` config](http://requirejs.org/docs/api.html#config) lets you create local aliases and prefixes for local dependencies. However, the `requirejs_include_tag` helper only makes the paths config available in the rendered...
Hello! I have just installed requirejs-rails and i have a problem with view helper `requirejs_include_tag`. Basically, when i'm trying to use it in my layout file, i'm getting: > undefined...
Hi. I installed both sprockets-es6 and requirejs-rails in my Rails app. I changed some of my javascript files to *.es6 extension so that Rails asset pipeline can compile those files...
It'd be great if the config could be part of the require.js download instead of being duplicated on every page. For complex apps, the config could get quite large so...
The recent versions of RequireJS support source maps, but some changes are needed to make them work well with the asset pipeline. I started making some changes to such as...