User tests: Successful: Unsuccessful:
Fixes #31091, at least in some part.
Moves some SCSS files back to media folder so all SCSS files are shipped and CSS can be compiled in production environment.
Testing BEFORE result requires a built package like nightly or beta. For testing AFTER result download the package from the link below this comment.
Download scssphp from https://github.com/scssphp/scssphp (bad idea, I know, but it's fine for testing purposes).
Use scssphp to compile some file, e.g. templates/cassiopeia/scss/template.scss
.
CSS compilation fails because of missing files:
../../../build/media_source/system/scss/icomoon` file not found for @import: ../templates/cassiopeia/scss/template.scss on line 21, at column 1
CSS file compiled.
No.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration Templates (admin) NPM Change JavaScript Repository Front End Templates (site) |
Labels |
Added:
NPM Resource Changed
?
|
I wanted to avoid having duplicate files in the working directory. This makes things complicated because assets needs to be copied after affected SCSS files are modified (because other SCSS files reference files from media
directory). But OK.
This makes things complicated because assets needs to be copied after affected SCSS files are modified (because other SCSS files reference files from media directory)
I'll have to update the code for the tooling anyhow, but good to know what the requirements (for scss) are...
Labels |
Added:
Conflicting Files
|
Labels |
Removed:
Conflicting Files
|
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-02-19 06:03:05 |
Closed_By | ⇒ | SharkyKZ |
Please DON'T reintroduce the media folder in the repo, there's another way to move the scss files to media (in the init module)