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
When working with the Sass.js APIs it is not neccessary to download the libsass repository every time. The `grunt rebuild` command will compile the Sass.js the same way `grunt build` will, except it will expect the repository to already exist.
32
+
When working with the Sass.js APIs it is not neccessary to download the libsass repository every time. The `npm run rebuild` command will compile the Sass.js the same way `npm run build` will, except it will expect the repository to already exist.
40
33
41
34
### Building in emscripten debug mode
42
35
43
36
This is useful (and necessary) to identify the callstacks required to whitelist for the [Emterpreter](https://github.com/kripken/emscripten/wiki/Emterpreter#emterpreter-async-run-synchronous-code).
44
37
45
38
```bash
46
-
grunt build:debug
39
+
npm run build:debug
47
40
48
41
# destination:
49
42
# dist/file-size.json
@@ -60,11 +53,11 @@ When working on the C wrapper it may be unnecessary to build the entire library,
60
53
61
54
```bash
62
55
# import libsass repository
63
-
grunt libsass:prepare
56
+
npm run libsass:prepare
64
57
# invoke emscripten
65
-
grunt libsass:build
58
+
npm run libsass:build
66
59
# invoke emscripten in debug mode
67
-
grunt libsass:debug
60
+
npm run libsass:debug
68
61
69
62
# destination:
70
63
# libsass/libsass/lib/libsass.js
@@ -73,7 +66,7 @@ grunt libsass:debug
73
66
74
67
## Loading the source files in the browser
75
68
76
-
After cloning this repository you can run `grunt libsass:prepare libsass:build` and then run Sass.js off its source files to gain access to all components (emscripten environment, Sass.js components) in the global scope (see [`sass.source.html`](../sass.source.html)):
69
+
After cloning this repository you can run `npm run libsass:prepare libsass:build` and then run Sass.js off its source files to gain access to all components (emscripten environment, Sass.js components) in the global scope (see [`sass.source.html`](../sass.source.html)):
77
70
78
71
```html
79
72
<!-- you need to compile libsass.js first using `grunt libsass:prepare libsass:build` -->
0 commit comments