create-bdpa-react-scaffold 1.8.8 → 1.8.9
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.
- package/create-ui-lib.js +6 -0
- package/package.json +1 -1
package/create-ui-lib.js
CHANGED
|
@@ -354,9 +354,15 @@ module.exports = {
|
|
|
354
354
|
write("vite.config.mts", `
|
|
355
355
|
import { defineConfig } from "vite";
|
|
356
356
|
import react from "@vitejs/plugin-react-swc";
|
|
357
|
+
import path from "path";
|
|
357
358
|
|
|
358
359
|
export default defineConfig({
|
|
359
360
|
plugins: [react()],
|
|
361
|
+
resolve: {
|
|
362
|
+
alias: {
|
|
363
|
+
"@": path.resolve(__dirname, "./src"),
|
|
364
|
+
},
|
|
365
|
+
},
|
|
360
366
|
server: {
|
|
361
367
|
host: true,
|
|
362
368
|
port: 3000
|