0.0.1 • Published 4 years ago
@zhengxs/sass.config v0.0.1
@zhengxs/sass.config
fork sass-config,不支持
node-sass
。
DotConfig for SASS
安装
# With NPM
$ npm install @zhengxs/sass.config --save
# With Yarn
$ yarn add @zhengxs/sass.config
# With PNPM
$ pnpm add @zhengxs/sass.config
使用
@use "@zhengxs2018/sass.config/_config";
// configuration #1
$config-example: (
foo: "bar",
baz: "qux",
);
// configuration #2
$config-example2: (
abc: "def",
);
// 写入配置
@include config.set("example", $config-example);
@include config.set("example2", $config-example2);
// 读取配置
@debug config.get("example.baz"); // Output: "qux"
@debug config.get("example2.abc"); // Output: "def"
License
0.0.1
4 years ago