Commit graph

28 commits

Author SHA1 Message Date
Kijin Sung
0029d1a1ec Rename all common/framework source files to be case-sensitive 2022-12-26 16:13:09 +09:00
Kijin Sung
e93b44aa3a Update SCSS compiler integration code to work with newer version of scssphp (fixes #1962) 2022-12-26 00:35:53 +09:00
Kijin Sung
d2347d4208 Add template & scss syntax to refer to absolute paths within Rhymix installation directory
템플릿을 인클루드하거나 CSS, JS 등을 로딩할 때 다른 경로에 있는 파일을 상대경로로 참조하려고 하면
../../../../../layouts/path/to/target/asset.scss 처럼 상당히 많이 거슬러 올라가야 하는 경우가 있습니다.
이 때 맨 앞에 ^를 붙여 ^/layouts/path/to/target/asset.scss 라고 마치 절대경로처럼 쓰면
라이믹스 설치 경로 기준으로 (서브폴더에 설치한 경우 포함) 자동으로 변환하도록 하는 패치입니다.
즉 ^ 문자를 넣은 부분이 라이믹스 설치 경로로 치환된다고 보면 됩니다.

지원되는 곳:
  - <include target="^/path/to/file.html" />
  - <load target="^/path/to/file.css" />
  - <load target="^/path/to/file.js" />
  - SCSS에서 @import "^/path/to/file.scss";
2022-10-13 14:57:24 +09:00
Kijin Sung
cb9f3dd1db Fix #1868 incorrect parsing of CSS/SCSS import containing special characters 2022-02-03 14:28:25 +09:00
Kijin Sung
adbd29231f Trigger warning when SCSS import fails 2022-01-03 14:11:46 +09:00
Kijin Sung
664a68fc2a Fix #1727 Recompile SCSS/LESS files when imported file is changed
- import된 파일 목록을 따로 보관해 두었다가, 그 중 하나라도 변경되었다면 다시 컴파일
- PHP의 stat cache 덕분에 성능 영향은 크지 않을 것으로 보이나, 모니터링 필요
2021-06-20 22:02:26 +09:00
Kijin Sung
c7f84a4dfe Fix #1725 display source filename on SCSS/LESS compile error 2021-06-20 02:21:34 +09:00
Kijin Sung
b01a148675 Fix #1729 @import of external URL in concatenated CSS 2021-06-19 19:39:57 +09:00
Kijin Sung
60465fb2db Fix various warnings in PHP 8.0 2021-01-28 22:32:56 +09:00
Kijin Sung
aefa19e850 Fix SCSS imports with relative paths not working 2021-01-21 15:45:58 +09:00
Kijin Sung
3cdcd2dcc0 Accommodate formatter changes 2021-01-06 21:50:27 +09:00
Kijin Sung
181ddf2ffe Only include SVG images smaller than 5KB in minified CSS 2020-12-15 02:21:07 +09:00
Kijin Sung
10ef0dd33d Rename Leafo\ScssPhp to ScssPhp\ScssPhp 2020-04-08 00:11:50 +09:00
Kijin Sung
ad96ae6bb6 Fix some obvious compatibility issues with new dependencies 2018-10-18 14:10:02 +09:00
Kijin Sung
464325c6f6 Update Markdown formatter to support footnotes and hard wraps natively 2017-06-29 23:58:20 +09:00
Kijin Sung
1c43cbb126 Fix SCSS import from subdirectory 2016-05-06 11:39:12 +09:00
Kijin Sung
7385d2f097 Process imports before converting url() relative paths 2016-05-05 20:18:14 +09:00
Kijin Sung
01315e62aa Fix relative path conversion in CSS/LESS/SCSS imports 2016-05-05 19:55:09 +09:00
Kijin Sung
b5a10e850f Add unit tests for concatCSS() and concatJS() 2016-05-05 13:45:57 +09:00
Kijin Sung
7363f71d4a Fix incorrect conversion of absolute URLs 2016-05-05 13:29:24 +09:00
Kijin Sung
aa1af352b2 Do not add @charset if it already exists 2016-05-04 22:07:49 +09:00
Kijin Sung
b15b39ece1 Initial implementation of CSS and JS concatenation 2016-05-04 21:40:42 +09:00
Kijin Sung
90bce20794 Add parser for IE conditional comments, to be used in JS concatenation 2016-05-04 18:06:02 +09:00
Kijin Sung
e22558374f Change Formatter class to allow direct access to CSS concatenation method 2016-05-04 17:19:17 +09:00
Kijin Sung
2a8c18eb01 Use Formatter class to add multiple common scripts at the same time 2016-05-04 14:27:47 +09:00
Kijin Sung
1bf110439a Update Formatter class to use new SCSS compiler 2016-03-22 11:29:05 +09:00
Kijin Sung
740de5caf3 Replace FileHandler calls and other paths in Rhymix Framework 2016-03-18 21:03:22 +09:00
Kijin Sung
ed50a57f9c Add formatter class and associated unit tests 2016-03-18 14:10:10 +09:00