Compiler

Scss & Less & Coffee compiler

Быстрый компилятор.

Легко настроить и начать пользоваться.

Scroll for more « More Projects

Настройка

В .htaccess после:

RewriteEngine On

Добавить:

# Less
RewriteRule ^(.*).less.css$ http://compiler.v2.axaple.com/c/less/?from_file=%{HTTP_HOST}/$1.less&ssl=%{HTTPS} [L]
RewriteRule ^(.*).less.min.css$ http://compiler.v2.axaple.com/c/less/?from_file=%{HTTP_HOST}/$1.less&ssl=%{HTTPS}&min=on [L]
# Scss
RewriteRule ^(.*).scss.js$ http://compiler.v2.axaple.com/c/scss/?from_file=%{HTTP_HOST}/$1.scss&ssl=%{HTTPS} [L]
RewriteRule ^(.*).scss.min.js$ http://compiler.v2.axaple.com/c/scss/?from_file=%{HTTP_HOST}/$1.scss&ssl=%{HTTPS}&min=on [L]
# Coffee
RewriteRule ^(.*).coffee.js$ http://compiler.v2.axaple.com/c/coffee/?from_file=%{HTTP_HOST}/$1.coffee&ssl=%{HTTPS} [L]
RewriteRule ^(.*).coffee.min.js$ http://compiler.v2.axaple.com/c/coffee/?from_file=%{HTTP_HOST}/$1.coffee&ssl=%{HTTPS}&min=on [L]

Примеры

# Less
<link rel="stylesheet" type="text/css" href="/css/style.less.css" />
<link rel="stylesheet" type="text/css" href="/css/style.less.min.css" />
<link rel="stylesheet" type="text/css" href="http://compiler.v2.axaple.com/c/less/?from_file=domain.com/css/style.less&ssl=off&min=off" />
# Scss
<link rel="stylesheet" type="text/css" href="/css/style.scss.css" />
<link rel="stylesheet" type="text/css" href="/css/style.scss.min.css" />
<link rel="stylesheet" type="text/css" href="http://compiler.v2.axaple.com/c/scss/?from_file=domain.com/css/style.scss&ssl=off&min=off" />
# Coffee
<script type="text/javascript" src="/js/script.coffee.js"></script>
<script type="text/javascript" src="/js/script.coffee.min.js"></script>
<script type="text/javascript" src="http://compiler.v2.axaple.com/c/coffee/?from_file=domain.com/js/script.coffee&ssl=off&min=off"></script>
				

By Axaple