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
(Based on [nativescript-dev-less plugin](https://github.com/NativeScript/nativescript-dev-less))
4
+
5
+
----------
6
+
This plugin uses the [node-sass compiler](https://www.npmjs.com/package/node-sass) to transpile SCSS files to CSS files in [NativeScript](https://www.nativescript.org/) projects.
7
+
8
+
9
+
How to use
10
+
----------
11
+
```
12
+
$ tns install sass
13
+
```
14
+
15
+
The above command installs this module and installs the necessary NativeScript hooks. SASS CSS pre-processing of all `.scss` files inside `app` folder happens when the project is prepared for build (including LiveSync, Emulate and Watch commands).
16
+
17
+
**NOTE: SASS @import syntax**
18
+
In some cases, the current version of node-sass requires `@import` statements to explicitly include the filename extension (like `.scss`). This occurs if files with the same name exist in the same path.
19
+
20
+
Example:
21
+
`variables.scss`
22
+
`variables.css`
23
+
`_variables.scss`
24
+
25
+
Node-sass will throw an error if the `@import variables;` syntax is used. As a workaround, use an explicit filename, like: `@import variables.scss;`
26
+
27
+
This will be fixed in node-sass 3.5. [See this issue for more detail](https://github.com/sass/node-sass/issues/1222).
0 commit comments