From 568ddf511c5715576468d9133f1a0f072e22d36e Mon Sep 17 00:00:00 2001 From: youtiao66 <978568519@qq.com> Date: Mon, 11 Oct 2021 15:29:19 +0800 Subject: [PATCH] docs: Custom syntax map --- doc/configuration.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/configuration.md b/doc/configuration.md index 2d36135e..34dd908f 100644 --- a/doc/configuration.md +++ b/doc/configuration.md @@ -131,3 +131,19 @@ This config will: 1. then use `"leading-zero": false` instead of anything detected, 1. then use `"vendor-prefix-align": true` even if there were no prefixed properties or values inside the `example.css`. + + +## Custom syntax map + +By default CSScomb process `*.css`, `*.less`, `*.sass` and `*.scss` files in matched syntax. +You can custom syntax map by `syntax` config. e.g. Using `css` syntax to handle `*.wxss` files + +```json +{ + "syntax": { + ".wxss": "css" + } +} +``` + +WXSS (WeiXin Style Sheets) is very similar to CSS but a little different \ No newline at end of file