Skip to content

Fix 'css-loader' uses in documentation #1785

@joaohaas

Description

@joaohaas

What problem does this feature solve?

Not exactly a feature request, but also not a bug.

Currently <style> tags do not work if following any of the documentation examples. This is due to the fact that vue-style-loader does not support css-loader 4.x.x or 5.x.x (vuejs/vue-style-loader#50, vuejs/vue-style-loader#46).

What does the proposed API look like?

It seems it can easily be fixed by disabling esModule:

{
    loader: 'css-loader',
    options: {
        esModule: false
    }
}

I can open a PR to fix these issues, but I'm not sure if that's wanted, since it's a issue with vue-style-loader, and it adds a bit of complexity to new users. At the same time, the current examples are not working at all, and vue-style-loader repo's last commit was in 2018... so not sure if those issues are going to be fixed.

EDIT: We can also change the npm install ... lines to install css-loader@3, and add an explanation on why you need to use an older version.

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