Skip to content

Avoid importing .css files in the published files #2561

@abdonrd

Description

@abdonrd

Describe the bug

https://unpkg.com/browse/@material/[email protected]/mwc-button.js

I just checking the @material/mwc-button and it has this CSS import line:

import { styles } from './styles.css';

But the browser can't load this .css file (at least without server magic).

Expected behavior

Use code that the browser understand.

Maybe as .css.js?

import { styles } from './styles.css.js';

Metadata

Metadata

Assignees

Labels

Type: BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions