{"action":"opened","issue":{"url":"https://api.github.com/repos/rails/rails/issues/26260","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/26260/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/26260/comments","events_url":"https://api.github.com/repos/rails/rails/issues/26260/events","html_url":"https://github.com/rails/rails/issues/26260","id":172704430,"number":26260,"title":"Not able to delete default application precompilation in Rails 5.0","user":{"login":"dbackeus","id":3461,"avatar_url":"https://avatars.githubusercontent.com/u/3461?v=3","gravatar_id":"","url":"https://api.github.com/users/dbackeus","html_url":"https://github.com/dbackeus","followers_url":"https://api.github.com/users/dbackeus/followers","following_url":"https://api.github.com/users/dbackeus/following{/other_user}","gists_url":"https://api.github.com/users/dbackeus/gists{/gist_id}","starred_url":"https://api.github.com/users/dbackeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbackeus/subscriptions","organizations_url":"https://api.github.com/users/dbackeus/orgs","repos_url":"https://api.github.com/users/dbackeus/repos","events_url":"https://api.github.com/users/dbackeus/events{/privacy}","received_events_url":"https://api.github.com/users/dbackeus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-23T13:50:06Z","updated_at":"2016-08-23T13:50:06Z","closed_at":null,"body":"### Steps to reproduce\r\n\r\nAttempt to remove the recursive application precompile regex in `assets.rb` by running `Rails.application.config.assets.precompile.delete(/(?:\\/|\\\\|\\A)application\\.(css|js)$/)`.\r\n\r\n### Expected behavior\r\nThe regexp should not remain in the array after Rails is finnished booting to avoid unwanted precompilation of files matching \"application.(css|js)\".\r\n\r\n### Actual behavior\r\nAfter rails has booted the regexp is still there in the precompile array.\r\n\r\n### Why are we even doing this in the first place?\r\n\r\nThe actual problem with this is that we're adding `node_modules` to our asset paths. Some node modules include `application.scss` in their test directories that will match rails default regex and thus starts precompiling causing exceptions when trying to load any page.\r\n\r\nIt seems that Rails 5 adds the application regexp after `assets.rb` has loaded so I'm not sure where I should delete it (seems like principle of least surprise would be to be able to do any asset config I need to do in `assets.rb`).\r\n\r\nAny workarounds would be appreciated...\r\n\r\n### System configuration\r\n**5.0.0.1**:\r\n\r\n**2.3.1p112**:\r\n"}}
{"actor":{"display_login":"dbackeus"}}