oklai / koala

Koala is a GUI application for less, sass and coffeescript compilation, to help web developers to the development more efficient.
http://koala-app.com
Other
3.99k stars 522 forks source link

autocompile minified files in koala-config.json #678

Open stefansicher opened 7 years ago

stefansicher commented 7 years ago

I'm using the koala-config.json for the first time. Setting output paths and autocompile for my scss files works great using mappings.

"mappings": [
         {
            "src": "source/scss",
            "dest": "css"
         }
    ],

But now I would like to automatically compress the css files with Output Style yuicompress. (style.css -> style.min.css) I would like to keep the non-compressed css files as they come in handy in the development environment.

Unfortunately there is no example in the documentation on how to use "customOptions": [], Looking at the source files it looks like "customOptions": ["--style"], should be a good start, but then I got stuck again and wasn't able to set autocompile and yuicompress.

I don't know how to create a proper koala-config.json and setting autocompile and output style in the gui is getting annoying. Saving the koala-config.json overwrites the autocompile and output style I've set in the gui.

If the Koala App could write autocompile, options, and output style into the koala-config.json that would be great. Or can someone help with with an example on how to define this in the config file?

stefansicher commented 7 years ago

I have update the issue description, does anyone have a solution for this? I think Koala App is a great tool, but the documentation is somehow limited and I don't know how to do this using the config file.

joaopedroraldi commented 6 years ago

+1