Skip to content

Styles are ignored in .vue files from node_modules #717

@prograhammer

Description

@prograhammer

When importing vue components from vendors (.vue files residing in node_modules) the styles from style blocks in those .vue files are not being processed by vue-loader. They don't appear anywhere after building. The styles don't appear in the browser when running the dev server npm run dev. And they don't show up anywhere in any build output in /dist from npm run build. You can quickly try it yourself and see it doesn't work.

I simply ran the vue-cli on this template and imported the vendor component in the App.vue. I didn't touch any webpack config or anything. Am I misunderstanding something about how vue-loader works?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions