StylePreprocessor Async request to compile Sass/Scss in the browser
What problem does this feature solve?
solve
Can compile Vue and Sass in the browser.(CDN)
- Library to compile Vue
URL:https://github.com/FranckFreiburger/vue3-sfc-loader
CDN:https://cdn.jsdelivr.net/npm/vue3-sfc-loade
- Library to compile Sass
URL:https://github.com/medialize/sass.js/blob/master/docs/getting-started.md
CDN:https://cdn.jsdelivr.net/npm/sass.js@0.11.1/dist/sass.sync.js
reason
the package vue-compile-sfc does not support async function, in brower sass.js doesnt support sync. https://github.com/FranckFreiburger/vue3-sfc-loader/issues/125
What does the proposed API look like?
const result = nodeSass.renderSync(finalOptions)
↓
const result = await nodeSass.renderSync(finalOptions)