vector-im-hydrogen-web/scripts
Eric Eastwood 2b4a7f05a6 Fix Vite not being able analyze dynamic CSS styles import in dev
Fix:
```
$ yarn start
[vite] warning:
@theme/default
1  |  import "C:\Users\MLM\Documents\GitHub\element\hydrogen-web\src\platform\web\ui\css\themes\element\theme.css";import "@theme/element/light/variables.css"
   |          ^
The above dynamic import cannot be analyzed by vite.
See https://github.com/rollup/plugins/tree/master/packages/dynamic-import-vars#limitations for supported dynamic import formats. If this is intended to be left as-is, you can use the /* @vite-ignore */ comment inside the import() call to suppress this warning.

  Plugin: vite:import-analysis
  File: @theme/default
```

And in the browser, it results in none of the styles loading because of the following error:
```
Uncaught SyntaxError: Invalid Unicode escape sequence (at default:formatted:1:163)
```

---

Before:
```
import { injectQuery as __vite__injectQuery } from "/@vite/client";import "__vite__injectQuery(C:\Users\MLM\Documents\GitHub\element\hydrogen-web\src\platform\web\ui\css\themes\element\theme.css, 'import')";import "/@id/__x00__@theme/element/light/variables.css"
```

After:
```
import "/ui/css/themes/element/theme.css";import "/@id/__x00__@theme/element/light/variables.css"
```
2022-06-07 23:41:45 -05:00
..
build-plugins Fix Vite not being able analyze dynamic CSS styles import in dev 2022-06-07 23:41:45 -05:00
logviewer show number of matches in logviewer and don't hide expanded sibling 2021-06-02 21:25:46 +02:00
package-overrides make ie11 compatible 2021-11-10 19:10:06 +01:00
postcss Fix asset build throwing and swallowing errors (#721) 2022-04-20 11:55:48 -05:00
sdk Clean up index.html in the right spot 2022-05-18 00:21:56 -05:00
.eslintrc.js Move plugin to /scripts and create eslintrc 2022-03-14 11:35:10 +05:30
cleanup.sh Use sh instead of bash 2022-05-10 14:12:36 +05:30
package.sh rename config file to config.sample.json when packaging 2022-05-18 20:52:18 +02:00
release.sh release script 2020-03-21 11:32:37 +01:00