My project is a pure html project. I want to render vue sfc according data from api.
Insert sass.js by <script src="./libs/sass/sass.js"></script>;
First I use sass.js to compile in renderSync function like below:
This means that renderSync function must return sync。
So I then search if sass.js can compile sync, but it seems impossible.
Is there any other sass lib can do job like sass.js. The form is like this beolow:
// my expected form
let cssstr = sasslib.compile(sassstr);
...
I would be happy if anyone can provide some suggestions.
My project is a pure html project. I want to render vue sfc according data from api. Insert sass.js by
<script src="./libs/sass/sass.js"></script>
; First I use sass.js to compile in renderSync function like below:Then if I try to return some test scss code, it works. like beow:
This means that renderSync function must return sync。 So I then search if sass.js can compile sync, but it seems impossible. Is there any other sass lib can do job like sass.js. The form is like this beolow:
I would be happy if anyone can provide some suggestions.