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

Generated css #166

Closed
k0fi opened this issue Oct 2, 2019 · 2 comments
Closed

Generated css #166

k0fi opened this issue Oct 2, 2019 · 2 comments

Comments

@k0fi
Copy link

k0fi commented Oct 2, 2019

I have generated a falavor using https://minicss.org/flavors#build-your-own-flavor and now I have a mini-custom.scss.
How am I supposed to make a css file out of this?

@FrancoisCapon
Copy link
Contributor

Your mini-custom.zip file doesn't contains a mini-custom.css and a mini-custom.min.css files a the root?

@k0fi
Copy link
Author

k0fi commented Oct 4, 2019

Well, modifying .css files is not fun, especially when you discover the power of scss.
So I solved the configuration problem like this:

  1. Download mini.css-master from github
  2. Copy the src folder to my project's css folder.
  3. Install Live Sass Compiler to my vscode
    3.b Assign the output path in the compiler's configuration if you want to specify where the resulting .css should go:
    "liveSassCompile.settings.formats": [{
        "format": "compressed",
        "extensionName": ".min.css",
        "savePath": "/css/mini-modified/dist"
    }

otherwise it saves generated .css in the same folder as corresponding .scss

  1. Live Sass compiler watches the changes which I make to any of the *.scss files in css/mini folder and generates css output mini-default.scss and whatever other .scss file is in css/flavor and put them in savePath defined for it.
  2. Remove unwanted mini-*.css from css/flavor folder, so that only the desired .css is generated. Very handy!

@k0fi k0fi closed this as completed Oct 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants