Skip to content

Integration with html-webpack-plugin #6

@burtyish

Description

@burtyish

I use https://github.com/jantimon/html-webpack-plugin to build my HTML. It automatically adds a a link to the stylesheet built by mini-css-extract-plugin:

If you have any CSS assets in webpack's output (for example, CSS extracted with the ExtractTextPlugin) then these will be included with tags in the HTML head.

So I've followed the instructions in the README here and webpack's output includes both the ltr [name].css file and also the [name].rtl.css file. However, the generated html links to the ltr file only. I don't know how html-webpack-plugin detects CSS assets in the webpack output, but it'd be very helpful if it used the css from rtl-css-transform-webpack-plugin.

As it is, the HTML generated by html-webpack-plugin includes only the follwing link to css in the head:

<link href="foo.css" rel="stylesheet">

I'd like the output to be

<link href="foo.rtl.css" rel="stylesheet">

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