Skip to content
This repository was archived by the owner on Nov 11, 2022. It is now read-only.
This repository was archived by the owner on Nov 11, 2022. It is now read-only.

wrong CSS output file extension #3

@adrianjost

Description

@adrianjost

Problem

Storybook from the schul-cloud/nuxt-client can not load styles, because the css output is saved as .scss instead of .css and therefore send with the wrong mime-type when delivered via CDN.

https://unpkg.com/@schul-cloud/styles@0.2.0/build/css/default/variables.scss
image

The result of this error is, that the colored backgrounds in the storybook do not work.

Idea for solution

Add gulp-rename to the gulp-file: https://stackoverflow.com/questions/32535178/gulp-sass-how-to-properly-name-the-output-css or maybe event better suited: gulp-ext-replace https://www.npmjs.com/package/gulp-ext-replace to rename the CSS output files .css instead of .scss.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions