-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Milestone
Description
For now, the main pain point of using this crate is the user needs to install the dart-sass-embedded into their app and pass the path to Sass::new, it is very inconvenient and needs the user knowing some sass knowledges and the source code of this crate to fully understand why they need to do that. So we need a convenient way to get the dart-sass-embedded for the user to let them don't need to worry about all the troubles or sass knowledges.
build script: a build script crate likeprost_build, this build script crate will install thedart-sass-embeddedand get the path where it installed at the build time. It's easy to implement, but the output can't be a single binary execution.- embed the dart vm: embed the dart vm into this crate, and load the
.snapshotfile asVec<u8>at build time. This way the output can be a single binary execution, but the crate size will increase lots, and can't use the samedart vm/dart-sass-embeddedwhen the user's project already using thedart vm/dart-sass-embedded.
The two ways is not mutually exclusive but complementary, the user can use cargo features to choose which way to use.
Tracking issue:
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed