anki/ts/svelte
Damien Elmes dbe5d43ba0 bundle all Svelte css into separate file
- svelte compilation outputs a separate .css file for each component
- compilation also adds an "import foo.css" to the top of each generated
.mjs file
- when the .mjs files are bundled into app.js, esbuild creates an app.css
as well
- graphs.scss was renamed to graphs_shared.scss and imported in the
top level GraphsPage. Henrik's style refactoring would be a better path
forward, but I needed to make this change for now, as the filenames were
conflicting.
2021-03-21 16:06:36 +10:00
..
BUILD.bazel bundle all Svelte css into separate file 2021-03-21 16:06:36 +10:00
README.md vendor Svelte rules 2021-03-20 15:04:19 +10:00
svelte.bzl output embedded Svelte css into separate .css file for bundling 2021-03-21 16:06:01 +10:00
svelte.ts bundle all Svelte css into separate file 2021-03-21 16:06:36 +10:00

Originally forked from https://github.com/thelgevold/rules_svelte (MIT) into https://github.com/ankitects/rules_svelte, and modified to generate TypeScript definitions in addition to mjs files. The parts we need are now integrated into this repo, so we can modify them more easily.