berfarah / LESS-build-sublime

Less build sytem for Sublime Text 2
Apache License 2.0
91 stars 14 forks source link

can not minifyed css file,OS:XP #17

Closed kuxiongxiong closed 12 years ago

kuxiongxiong commented 12 years ago

can not minifyed css file,OS:XP config file from LESS-normal.sublime-build-choice

jess-sol commented 12 years ago

Are you going to ctrl+shift+P, typing minify, and selecting "Build: Minify"? On Aug 10, 2012 1:51 AM, "feiqiao" notifications@github.com wrote:

can not minifyed css file,OS:XP config file from LESS-normal.sublime-build-choice

— Reply to this email directly or view it on GitHubhttps://github.com/berfarah/LESS-build-sublime/issues/17.

kuxiongxiong commented 12 years ago

no,I use the build system "less". I want compile less file to minifyed css file

kuxiongxiong commented 12 years ago

how to enable the minify css options? the previous version works

jess-sol commented 12 years ago

That's how you Minify the less file into css. On Aug 10, 2012 1:57 AM, "feiqiao" notifications@github.com wrote:

how to enable the minify css options?

— Reply to this email directly or view it on GitHubhttps://github.com/berfarah/LESS-build-sublime/issues/17#issuecomment-7636408.

kuxiongxiong commented 12 years ago

in the previous version I can have 2 build system,one" less" which compile less to common css file without minifed, the another "less- min " which compile less to minifyed css file

kuxiongxiong commented 12 years ago

can there be any build system?

jess-sol commented 12 years ago

In the newest version of the plugin these were put into a single build system, with the Minify being the variant. You can tie a keyboard shortcut to run the variant, thereby minifying the less file; but as of now there is only one build system so that you can set your build system (in the menu) to automatic.

To keymap say Ctrl+Shift+B to minifying the less script, you would add something like below to your user keymappings { "keys": ["ctrl+shift+b"], "command": "build", "args": {"variant": "Minify"} }

Hope that helps

On Fri, Aug 10, 2012 at 2:06 AM, feiqiao notifications@github.com wrote:

can there be any build system?

— Reply to this email directly or view it on GitHubhttps://github.com/berfarah/LESS-build-sublime/issues/17#issuecomment-7636533.

kuxiongxiong commented 12 years ago

yes.it works ,but one more question:the output file is x.less -> x.min.css

can x.less -> x.css? without the ".min"

jess-sol commented 12 years ago

Why would you want that? It's a minified output, the filename should reflect that.

I'd recommend in your server side choose you have a debug flash, if it's on it serves up non minified code, if it's off it serves the minified version On Aug 10, 2012 2:28 AM, "feiqiao" notifications@github.com wrote:

yes.it works ,but one more question:the output file is x.less -> x.min.css

can x.less -> x.css? without the ".min"

— Reply to this email directly or view it on GitHubhttps://github.com/berfarah/LESS-build-sublime/issues/17#issuecomment-7636896.

kuxiongxiong commented 12 years ago

thanks~