Skip to content

asset pipeline require_tree includes js.orig files #2809

@wireframe

Description

@wireframe

The rails 3.1 asset pipeline is including .orig files generated by git and causing the asset to be included twice in the generated bundle. I understand the .js.coffee convention, but .js.orig should be excluded from this list.

app/assets/javascripts/application.js

/**
 *= require_tree .
 */

app/assets/javascripts/example.js

alert('js loaded');

app/assets/javascripts/example.js.orig

alert('js loaded - should be ignored');

generates:
http://localhost:3000/assets/application.js

alert('js loaded');
alert('js loaded - should be ignored');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions