You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scss-splinter enables the creation of multiple stylesheets from a common set of modules with minimal effort via SCSS mixins and functions.
4
+
5
+
## Usage
6
+
7
+
scss-splinter accepts an options object that specifies a `partial` and a `base`.
8
+
9
+
```js
10
+
constparse=require('scss-splinter');
11
+
12
+
parse({
13
+
partial:'src/scss/_brands.scss',
14
+
base:'src/scss/_base.scss',
15
+
})
16
+
```
17
+
18
+
1. Partial is the name of the file that scss-splinter will generate with "split" code, e.g. code that is specified in the matching mixin or sass-function.
19
+
20
+
2. Base is the name of the main `sass` index file in a project. This is the file scss-splinter will use to find all the files it needs to parse.
21
+
22
+
scss-splinter fills the `partial` file with "split" `scss` and returns a promise that contains "global" `scss`. It's up to the project to determine what to do with this global string. One approach would be to run the string through `node-sass` and write the compiled `css` to a file.
0 commit comments