Skip to content

Loading a css file that doesn't end with ".css" #240

@indrekluuk

Description

@indrekluuk

Is there a way to prevent adding ".css" to the end of the request URL?

I want to load Google font icons:
require('css!https://fonts.googleapis.com/icon?family=Material+Icons')
This is the result:
<link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons.css">

My current ugly workaround is that I add an ampersand (&) to the end, so the ".css" appears as a separate parameter:
require('css!https://fonts.googleapis.com/icon?family=Material+Icons&')
<link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons&.css">

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