Skip to content

Less 2.1.1 conflicts with RequireJS #2346

@kirill-konshin

Description

@kirill-konshin

Less data attributes parsing feature conflicts with RequireJS's data-main attribute on line JSON.parse(tag.dataset[opt]) because tag.dataset[opt] is not JSON, it is a link to another JS file:

<script data-main="js/main.js" src="bower/requirejs/require.js" type="text/javascript"></script>

See: PR #2243 (comment) - Support reading less options from its script tag data attributes

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