Skip to content

.json extension #78

@ouroboroscoding

Description

@ouroboroscoding

Got here from a post on StackOverflow which states

// It does not actually need to be a .json extension, this will work to:
require(['json!someFile'], function(data){

But as near as I can tell this doesn't work, it's always trying to load "someFile" rather than "someFile.json"

How do I get this to work without adding the extension?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions