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'
7
7
<% _ if (config .includeAtAliases ) { _% >
8
8
const librarySrc = fileURLToPath (new URL (' ../<%- config.mainPackageDirName %>/src/' , import .meta.url))
9
9
const playgroundSrc = fileURLToPath (new URL (' ./src/' , import .meta.url))
10
-
11
10
< % _ } _% >
11
+
12
12
export default defineConfig (({ mode }): UserConfig => ({
13
13
plugins: [
14
14
vue (),
@@ -38,7 +38,8 @@ export default defineConfig(({ mode }): UserConfig => ({
38
38
< % _ } _% >
39
39
},
40
40
define: {
41
- __DEV__ : mode !== ' production' < % _ if (config .includeTestVariable ) { _% > ,
41
+ __DEV__ : mode !== ' production' ,
42
+ < % _ if (config .includeTestVariable ) { _% >
42
43
__TEST__ : false
43
44
< % _ } % >
44
45
}
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import { defineConfigWithTheme } from 'vitepress'
5
5
<% _ if (config .includeAtAliases ) { _% >
6
6
const librarySrc = fileURLToPath (new URL (' ../../<%- config.mainPackageDirName %>/src/' , import .meta.url))
7
7
const playgroundSrc = fileURLToPath (new URL (' ../src/' , import .meta.url))
8
-
9
8
< % _ } _% >
9
+
10
10
export default ({ mode }: { mode: string }) => defineConfigWithTheme ({
11
11
srcDir: ' ./src' ,
12
12
outDir: ' ./dist' ,
@@ -31,8 +31,8 @@ export default ({ mode }: { mode: string }) => defineConfigWithTheme({
31
31
return [[' link' , { rel: ' canonical' , href: canonicalUrl }]]
32
32
}
33
33
},
34
-
35
34
< % _ } _% >
35
+
36
36
vite: {
37
37
resolve: {
38
38
< % _ if (config .includeAtAliases ) { _% >
@@ -78,8 +78,8 @@ export default ({ mode }: { mode: string }) => defineConfigWithTheme({
78
78
socialLinks: [
79
79
{ icon: ' github' , link: ' <%- config.githubUrl %>' }
80
80
],
81
-
82
81
< % _ } _% >
82
+
83
83
sidebar: [
84
84
{
85
85
text: ' Getting started' ,
You can’t perform that action at this time.
0 commit comments