@promoboxx/react-scripts-vite 0.1.18 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +18 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -39,10 +39,27 @@ Put this in `src/react-scripts-vite.d.ts`:
39
39
 
40
40
  Should be very straightforward. For application code, everything should be supported out of the box.
41
41
 
42
+ ### index.html
43
+
44
+ Vite expects your `index.html` to live at the root directory, not in `public/`
45
+
46
+ ```shell
47
+ mv public/index.html ./
48
+ ```
49
+
50
+ Remove any references to `%PUBLIC_URL%`. Passing `--base /some/sub/dir/` to `build` will get you the same result.
51
+
42
52
  ### Sass
43
53
 
44
54
  Sass isn't included [as per Vite's recommendation](https://vitejs.dev/guide/features.html#css-pre-processors). You can add pre-processors to your projects if you wish.
45
55
 
46
56
  ### Tests
47
57
 
48
- react-scripts-vite uses Vitest instead of Jest. Vitest has a jest-compatible interface, accessible via `vi`.
58
+ react-scripts-vite uses [Vitest](https://vitest.dev) instead of Jest. Vitest has a jest-compatible interface, accessible via `vi`.
59
+
60
+ The path to the test setup file has changed:
61
+
62
+ ```shell
63
+ mkdir -p src/tests/
64
+ mv src/setupTests.ts src/test/setup.ts
65
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promoboxx/react-scripts-vite",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "keywords": [],