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

wrong CSS output file extension #3

Open
adrianjost opened this issue Jun 7, 2020 · 0 comments
Open

wrong CSS output file extension #3

adrianjost opened this issue Jun 7, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@adrianjost
Copy link
Contributor

adrianjost commented Jun 7, 2020

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/[email protected]/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.

@adrianjost adrianjost added the bug Something isn't working label Jun 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants