@vertesia/create-plugin 0.75.0 → 0.76.0
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/package.json
CHANGED
|
@@ -10,7 +10,7 @@ import "./env"
|
|
|
10
10
|
createRoot(document.getElementById('root')!).render(
|
|
11
11
|
<StrictMode>
|
|
12
12
|
<VertesiaShell>
|
|
13
|
-
<StandaloneApp name=
|
|
13
|
+
<StandaloneApp name={import.meta.env.VITE_APP_NAME}> {/* <---- define VITE_APP_NAME en var in .env.local */}
|
|
14
14
|
<RouterProvider routes={[{ path: "*", Component: App }]} />
|
|
15
15
|
</StandaloneApp>
|
|
16
16
|
</VertesiaShell>
|
|
@@ -62,7 +62,7 @@ function defineLibConfig({ command }: ConfigEnv): UserConfig {
|
|
|
62
62
|
vertesiaPluginBuilder({ inlineCss })
|
|
63
63
|
],
|
|
64
64
|
build: {
|
|
65
|
-
outDir: 'lib', // the plugin will be generated in the `lib` directory
|
|
65
|
+
outDir: 'dist/lib', // the plugin will be generated in the `dist/lib` directory
|
|
66
66
|
lib: {
|
|
67
67
|
entry: './src/plugin.tsx', // Main entry point of your library
|
|
68
68
|
formats: ['es'], // Build ESM versions
|
|
@@ -94,7 +94,7 @@ function defineAppConfig(): UserConfig {
|
|
|
94
94
|
serveStatic([
|
|
95
95
|
{
|
|
96
96
|
pattern: new RegExp("/plugin.(js|css)"),
|
|
97
|
-
resolve: (groups: string[]) => `./lib/plugin.${groups[1]}`
|
|
97
|
+
resolve: (groups: string[]) => `./dist/lib/plugin.${groups[1]}`
|
|
98
98
|
},
|
|
99
99
|
]),
|
|
100
100
|
],
|