mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
add a hack to handle sass resolution in svelte in external workspace
This commit is contained in:
parent
e2b2d1e9d8
commit
84e2cfbe3f
1 changed files with 11 additions and 1 deletions
|
@ -151,7 +151,17 @@ async function writeJs(
|
|||
genDir: string
|
||||
): Promise<void> {
|
||||
const preprocessOptions = preprocess({
|
||||
scss: { includePaths: [binDir, genDir] },
|
||||
scss: {
|
||||
includePaths: [
|
||||
binDir,
|
||||
genDir,
|
||||
// a nasty hack to ensure ts/sass/... resolves correctly
|
||||
// when invoked from an external workspace
|
||||
binDir + "/external/net_ankiweb_anki",
|
||||
genDir + "/external/net_ankiweb_anki",
|
||||
binDir + "/../../../external/net_ankiweb_anki",
|
||||
],
|
||||
},
|
||||
});
|
||||
preprocessOptions.filename = inputFilename;
|
||||
|
||||
|
|
Loading…
Reference in a new issue