문제

So I'm using Codekit to compile LESS CSS on my local server. Now I need to transfer the files to my live server.

My question is, do I need to upload all the .less files? Or can I just upload the minified css file?

What is the best practice here?

도움이 되었습니까?

해결책

If you don't plan on editing anything on your live server (which you shouldn't anyway), you only need to upload the compiled .css file; the compiled CSS is completely independent of the source LESS.

다른 팁

It is better to upload CSS files.

Firstly, LESS might not be compatible for all browsers and secondly, CSS is your output of LESS file will take up some time(minimal but why to force on client) to compile it on run time.

I am deploying files to a server from more than one machine, so I tend to upload (in my case) scss files (although less files are essentially similar) and then I can pull them down to a separate machine for editing. But the pages only refer to the css files.

As a minimum you only need to upload the compiled css file(s).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top