\r\n\u003Cstyle module>\r\n.my-style { background: blue;}\r\n\u003C/style>\r\n\r\nand i am using the component, it does not render the 'blue' background. if you investigate what $stlye is when you mount the component it has $style={my-style: my-style_fingerprint}\r\n\r\nThis appears to be because i can not set the css.module options on the vite config.\r\n\n\n### Describe the solution you'd like\n\ncould you pass through https://vitejs.dev/config/shared-options.html#css-modules to the vite config. I just need to set the localsConvention to camelcase\n\n### Describe alternatives you've considered\n\ni would have to change my code so that all my references to $style is not camelcase. I have thousands of references to different css classes, so it would be a real pain to get it to work correctly\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.vuejs.org).\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[2913],{"name":2903,"color":2904},2026,"Pass css.modules to vite app","2023-03-11T00:04:09Z","https://github.com/vuejs/vitepress/issues/2026",0.68851405,{"description":2920,"labels":2921,"number":2926,"owner":2868,"repository":2869,"state":2870,"title":2927,"updated_at":2928,"url":2929,"score":2930},"### Describe the bug\n\nWhen I initialize a new project and access it, it returns\r\n\r\n[plugin:vite:import-analysis] Failed to resolve import \"@vue/composition-api/dist/vue-composition-api.mjs\" from \"../node_modules/vue-demi/lib/index.mjs?v=2157b86a\". Does the file exist?\r\n\r\n\n\n### Reproduction\n\nvitepress v1.0.0-alpha.65\r\n\r\n┌ Welcome to VitePress! \r\n│\r\n◇ Where should VitePress initialize the config?\r\n│ ./docs\r\n│\r\n◇ Site title:\r\n│ My Awesome Project\r\n│\r\n◇ Site description:\r\n│ A VitePress Site\r\n│\r\n◇ Theme:\r\n│ Default Theme\r\n│\r\n◇ Use TypeScript for config and theme files?\r\n│ Yes\r\n│\r\n◇ Add VitePress npm scripts to package.json?\r\n│ Yes\r\n│\r\n└ Done! Now run npm run docs:dev and start writing.\r\n\r\n\r\nnpm run docs:dev\r\n\r\n\r\n> docs:dev\r\n> vitepress dev docs\r\n\r\nfailed to start server. error:\r\nError: Failed to resolve vue/compiler-sfc.\r\n@vitejs/plugin-vue requires vue (>=3.2.25) to be present in the dependency tree.\r\n at resolveCompiler (file:///Users/nroy/node_modules/@vitejs/plugin-vue/dist/index.mjs:12:11)\r\n at Context.buildStart (file:///Users/nroy/node_modules/@vitejs/plugin-vue/dist/index.mjs:2667:46)\r\n at hookParallel (file:///Users/nroy/node_modules/vite/dist/node/chunks/dep-79892de8.js:42977:47)\r\n at Object.buildStart (file:///Users/nroy/node_modules/vite/dist/node/chunks/dep-79892de8.js:43291:19)\r\n at file:///Users/nroy/node_modules/vite/dist/node/chunks/dep-79892de8.js:63012:29\r\n at initServer (file:///Users/nroy/node_modules/vite/dist/node/chunks/dep-79892de8.js:63019:11)\r\n at Server.httpServer.listen (file:///Users/nroy/node_modules/vite/dist/node/chunks/dep-79892de8.js:63027:23)\r\n at file:///Users/nroy/node_modules/vite/dist/node/chunks/dep-79892de8.js:53058:20\r\n at new Promise (\u003Canonymous>)\r\n at httpServerStart (file:///Users/nroy/node_modules/vite/dist/node/chunks/dep-79892de8.js:53040:12)\r\n\r\n\r\nim install new vue\r\n\r\n\r\n\r\n> vitepress dev docs\r\n\r\n\r\n vitepress v1.0.0-alpha.65\r\n\r\n ➜ Local: http://localhost:5173/\r\n ➜ Network: use --host to expose\r\n\r\n\r\n\r\nFailed to resolve import \"@vue/composition-api/dist/vue-composition-api.mjs\" from \"../node_modules/vue-demi/lib/index.mjs?v=2157b86a\". Does the file exist?\r\nFailed to resolve import \"@vue/composition-api/dist/vue-composition-api.mjs\" from \"../node_modules/vue-demi/lib/index.mjs?v=2157b86a\". Does the file exist? (x2)\r\n11:29:14 [vitepress] Internal server error: Failed to resolve import \"@vue/composition-api/dist/vue-composition-api.mjs\" from \"../node_modules/vue-demi/lib/index.mjs?v=2157b86a\". Does the file exist?\r\n Plugin: vite:import-analysis\r\n File: /Users/nroy/node_modules/vue-demi/lib/index.mjs?v=2157b86a:2:32\r\n 1 | import Vue from 'vue'\r\n 2 | import VueCompositionAPI from '@vue/composition-api/dist/vue-composition-api.mjs'\r\n | ^\r\n 3 | \r\n 4 | function install(_vue) {\r\n at formatError (file:///Users/nroy/node_modules/vite/dist/node/chunks/dep-79892de8.js:43113:46)\r\n at TransformContext.error (file:///Users/nroy/node_modules/vite/dist/node/chunks/dep-79892de8.js:43109:19)\r\n at normalizeUrl (file:///Users/nroy/node_modules/vite/dist/node/chunks/dep-79892de8.js:41378:33)\r\n at async TransformContext.transform (file:///Users/nroy/node_modules/vite/dist/node/chunks/dep-79892de8.js:41512:47)\r\n at async Object.transform (file:///Users/nroy/node_modules/vite/dist/node/chunks/dep-79892de8.js:43387:30)\r\n at async loadAndTransform (file:///Users/nroy/node_modules/vite/dist/node/chunks/dep-79892de8.js:41105:29)\r\n\r\n\n\n### Expected behavior\n\nUnable to access normally\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 12.5\r\n CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz\r\n Memory: 244.26 MB / 16.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node\r\n Yarn: 1.22.10 - /usr/local/bin/yarn\r\n npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm\r\n Watchman: 2021.06.07.00 - /usr/local/bin/watchman\r\n Browsers:\r\n Chrome: 112.0.5615.49\r\n Safari: 15.6\n```\n\n\n### Additional context\n\n\u003Cimg width=\"1051\" alt=\"image\" src=\"https://user-images.githubusercontent.com/33707417/231934722-5d1521f4-52a2-471f-b74d-085d4a91eb5f.png\">\r\n\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [x] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2922,2923],{"name":2903,"color":2904},{"name":2924,"color":2925},"stale","ededed",2213,"[plugin:vite:import-analysis] Failed to resolve import","2023-08-15T00:04:21Z","https://github.com/vuejs/vitepress/issues/2213",0.6885195,{"description":2932,"labels":2933,"number":2934,"owner":2868,"repository":2869,"state":2870,"title":2935,"updated_at":2936,"url":2937,"score":2938},"i want use vitepress become a ui component display website. so i import my sfc in enhanceApp. But at meantime i must config my own `Layout.vue` and `notfound.vue` component. That is not what i want. i liked defaulte theme (vuepress old player) very mush. \r\n\r\n```js\r\nimport Layout from '/@theme/Layout.vue';\r\nimport Helloworld from \"../components/index\"\r\n\r\nexport default {\r\n Layout,\r\n // NotFound,\r\n enhanceApp({ app, router, siteData }) {\r\n app.use(Helloworld) \r\n }\r\n}\r\n```\r\n\r\ni think `@theme/index` should not config default layout and enhanceApp at same time or in the same file. or at least it must follow `Convention over configuration` rule.\r\n\r\nif follow [vuepress default theme file system](https://github.com/vuejs/vuepress/tree/master/packages/%40vuepress/theme-default) and `Convention over configuration`, it will be better\r\n\r\nmaybe use `@theme/layouts/`, `@theme/components/`\r\n\r\nand here is a bug, when a create emptyfile `theme` in `.vitepress` .it will crash",[],58,"want more flexibility in the customization part","2023-01-21T16:20:20Z","https://github.com/vuejs/vitepress/issues/58",0.6885938,{"description":2940,"labels":2941,"number":2946,"owner":2868,"repository":2869,"state":2870,"title":2947,"updated_at":2948,"url":2949,"score":2950},"### Is your feature request related to a problem? Please describe.\n\nuse \r\n`\r\n\u003C\u003C\u003C @/../../ code_project/example/views/xxx/xx.vue\r\n`\r\nImport code snippet,Can customize @ path,\r\n\r\n\r\nthank you very much indeed\r\n\r\n\n\n### Describe the solution you'd like\n\n`\r\n\r\nimport { defineConfig } from 'vitepress';\r\nimport { fileURLToPath } from 'url';\r\nimport { dirname, resolve } from 'path';\r\nconst vitepressDir = dirname(fileURLToPath(import.meta.url));\r\nexport default defineConfig({\r\n vite: {\r\n resolve: {\r\n // Can it be defined here ??? \r\n alias: {\r\n '@codePath': resolve(vitepressDir, '../../../code_project/example/views/')\r\n }\r\n }\r\n }\r\n});\r\n`\r\nWhen in use\r\n`\r\n\u003C\u003C\u003C @codePath/xxx/xx.vue\r\n`\r\n\n\n### Describe alternatives you've considered\n\n_No response_\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.vuejs.org).\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[2942,2945],{"name":2943,"color":2944},"build","377ba8",{"name":2924,"color":2925},1698,"Allow customizing root for importing snippets","2023-08-12T00:04:20Z","https://github.com/vuejs/vitepress/issues/1698",0.6893126,{"description":2952,"labels":2953,"number":2954,"owner":2868,"repository":2869,"state":2870,"title":2955,"updated_at":2956,"url":2957,"score":2958},"### Is your feature request related to a problem? Please describe.\n\n## Adding Static Resources config\r\nWhen I use **vitepress** with external css files e.g. `element-plus.css`. I found that the only way to import the css file is via JavaScript. You can't actually add it in the rendered template `head` tag. So I wonder is it possible to expose a config field for importing external resources via `CDN`\r\n\r\n## Benefits\r\n\r\nWhen using external resources this way we could potentially benefit from using CDN.\n\n### Describe the solution you'd like\n\n### Exposing a field named `externals` or `resources` with type:\r\n\r\n```typescript\r\ntype Resource = {\r\n type: 'script' | 'link',\r\n target: 'url_to_resource',\r\n async: boolean // or defer?\r\n}\r\n\r\ntype Resources = Resource[]\r\n```\r\n\r\n### When rendering\r\n\r\nAdd co-responding HTML tag into the `head` tag for external links.\n\n### Describe alternatives you've considered\n\n_No response_\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/coc)\n- [X] Read the [docs](https://vitepress.vuejs.org/).\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/master/.github/contributing.md).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[],375,"[Feature Request] Adding config for external resources","2023-01-21T16:22:09Z","https://github.com/vuejs/vitepress/issues/375",0.6924058,["Reactive",2960],{},["Set"],["ShallowReactive",2963],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fv1WdzBjsXJt3XMhbGi2H_mnBi_2HQfPLZpKESMxrCcE":-1},"/vuejs/vitepress/214"]