Skip to content

Commit e0e506b

Browse files
author
Ivan Borzenkov
committed
Не использовать кеш в compass и Make файл для генерации продакшена
1 parent d1b5f40 commit e0e506b

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#мейк файл для основных действий
2+
3+
all:
4+
php cron/start.php css/gen
5+
php cron/start.php js/gen
6+
- compass compile -e production --force
7+
#- compass compile --output-style compressed --force
8+
9+
daemon:
10+
- compass watch
11+
12+
clean: compass_clean
13+
php cron/start.php css/clean
14+
php cron/start.php js/clean
15+
16+
compass_clean:
17+
- find application/_common/css -name '*.s[ac]ss' | sed 's/application\/_common/www/' | sed 's/\.s[ac]ss/\.css/' | xargs -I'{}' rm {}
18+
19+
.PHONY:
20+
clean compass_clean

config.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
javascripts_dir = "www/js"
88
# To enable relative paths to assets via compass helper functions. Uncomment:
99
# relative_assets = true
10+
11+
sass_options = { :cache => false }
12+

0 commit comments

Comments
 (0)