Skip to content

Commit

Permalink
test: add config file with no export
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed May 21, 2024
1 parent d378e34 commit 3617255
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions e2e/docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { viteBundler } from '@vuepress/bundler-vite'
import { webpackBundler } from '@vuepress/bundler-webpack'
import { defineUserConfig } from 'vuepress'
import { path } from 'vuepress/utils'
import { testPlugin } from './plugins/testPlugin.js'
import { e2eTheme } from './theme/node/e2eTheme.js'

const E2E_BASE = (process.env.E2E_BASE ?? '/') as '/' | `/${string}/`
Expand Down Expand Up @@ -80,4 +81,6 @@ export default defineUserConfig({
}
}
},

plugins: [testPlugin],
})
1 change: 1 addition & 0 deletions e2e/docs/.vuepress/plugins/clientConfig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './test.css'
3 changes: 3 additions & 0 deletions e2e/docs/.vuepress/plugins/test.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
h1 {
font-size: 32px;
}
8 changes: 8 additions & 0 deletions e2e/docs/.vuepress/plugins/testPlugin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { createRequire } from 'node:module'

const require = createRequire(import.meta.url)

export const testPlugin = {
name: 'test-plugin',
clientConfigFile: require.resolve('./clientConfig.js'),
}

0 comments on commit 3617255

Please sign in to comment.