Skip to content

ringself/sassmagic

Repository files navigation

sassmagic

description:Sass extention tool

install

sudo gem install sassmagic

use

start:

sassmagic init

or

sassmagic create [project]

other cml

same to sass

eg: sassmagic --style nested --x test.scss test.css

eg: sassmagic --watch sass/main.scss:stylesheet/main.css

configuration

sassmagic.json 配置文件:

 {
        "isNeedPxToRem": true,//是否自动转rem
        "browserDefaultFontSize": "75px",//rem设置
        "devicePixelRatio":"2",//dpr设置
        "ignore": [//过滤不需要转rem的内容
            "1px",
            "[data-dpr=",
            "font-size"
        ],
        "outputExtra": [//额外输出1x 2x 3x样式表
            "1x",
            "2x",
            "3x"
        ],
        "imageMaxSize": "5120",//图片时候上传阀值
        "imageLoader": "../config/imageuploader.js",//上传任务nodeJs
        "imagesPath": {//上传文件缓存
        },
        "remoteStylesheet":"",//远程stylesheet路径
        "tinypngKye",""//tinypngApiKey
    }

imageuploader.js 图片上传

About

Extensions For Sass that you wanted

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published