File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
packages/create-vue-lib/src/template
playground/config/packages/playground
vitepress/config/packages/docs/.vitepress Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ import vueDevTools from 'vite-plugin-vue-devtools'
77<% _ if (config .includeAtAliases ) { _% >
88const librarySrc = fileURLToPath (new URL (' ../<%- config.mainPackageDirName %>/src/' , import .meta.url))
99const playgroundSrc = fileURLToPath (new URL (' ./src/' , import .meta.url))
10-
1110< % _ } _% >
11+
1212export default defineConfig (({ mode }): UserConfig => ({
1313 plugins: [
1414 vue (),
@@ -38,7 +38,8 @@ export default defineConfig(({ mode }): UserConfig => ({
3838 < % _ } _% >
3939 },
4040 define: {
41- __DEV__ : mode !== ' production' < % _ if (config .includeTestVariable ) { _% > ,
41+ __DEV__ : mode !== ' production' ,
42+ < % _ if (config .includeTestVariable ) { _% >
4243 __TEST__ : false
4344 < % _ } % >
4445 }
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import { defineConfigWithTheme } from 'vitepress'
55<% _ if (config .includeAtAliases ) { _% >
66const librarySrc = fileURLToPath (new URL (' ../../<%- config.mainPackageDirName %>/src/' , import .meta.url))
77const playgroundSrc = fileURLToPath (new URL (' ../src/' , import .meta.url))
8-
98< % _ } _% >
9+
1010export default ({ mode }: { mode: string }) => defineConfigWithTheme ({
1111 srcDir: ' ./src' ,
1212 outDir: ' ./dist' ,
@@ -31,8 +31,8 @@ export default ({ mode }: { mode: string }) => defineConfigWithTheme({
3131 return [[' link' , { rel: ' canonical' , href: canonicalUrl }]]
3232 }
3333 },
34-
3534 < % _ } _% >
35+
3636 vite: {
3737 resolve: {
3838 < % _ if (config .includeAtAliases ) { _% >
@@ -78,8 +78,8 @@ export default ({ mode }: { mode: string }) => defineConfigWithTheme({
7878 socialLinks: [
7979 { icon: ' github' , link: ' <%- config.githubUrl %>' }
8080 ],
81-
8281 < % _ } _% >
82+
8383 sidebar: [
8484 {
8585 text: ' Getting started' ,
You can’t perform that action at this time.
0 commit comments