Download react-spring/docs/vite.config.mts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.53 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/docs/vite.config.mts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/docs/vite.config.mts
-
curl -L -o vite.config.mts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/docs/vite.config.mts
1.53 kB
| import { vitePlugin as remix } from '@remix-run/dev' | |
| import mdx from '@mdx-js/rollup' | |
| import { installGlobals } from '@remix-run/node' | |
| import { vercelPreset } from '@vercel/remix/vite' | |
| import { defineConfig } from 'vite' | |
| import tsconfigPaths from 'vite-tsconfig-paths' | |
| import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin' | |
| import remarkFrontmatter from 'remark-frontmatter' | |
| import remarkMdxFrontmatter from 'remark-mdx-frontmatter' | |
| import rehypeAutolinkHeadings from 'rehype-autolink-headings' | |
| import rehypeSlug from 'rehype-slug' | |
| import remarkDirective from 'remark-directive' | |
| import rehypeHighlightCode from './scripts/mdx/rehype-highlight-code' | |
| import rehypeMetaAttribute from './scripts/mdx/rehype-meta-attribute' | |
| import parseCallouts from './scripts/mdx/remark-plugin-parser' | |
| installGlobals() | |
| export default defineConfig({ | |
| ssr: { | |
| noExternal: ['@docsearch/react', /@algolia/, 'algoliasearch'], | |
| }, | |
| server: { | |
| port: 3000, | |
| }, | |
| plugins: [ | |
| // @ts-expect-error shh. | |
| mdx({ | |
| providerImportSource: '@mdx-js/react', | |
| rehypePlugins: [ | |
| rehypeSlug, | |
| [rehypeAutolinkHeadings, { behavior: 'wrap' }], | |
| rehypeHighlightCode, | |
| rehypeMetaAttribute, | |
| ], | |
| remarkPlugins: [ | |
| remarkFrontmatter, | |
| remarkMdxFrontmatter, | |
| remarkDirective, | |
| parseCallouts, | |
| ], | |
| }), | |
| remix({ | |
| ignoredRouteFiles: ['**/.*', '**/*.css'], | |
| presets: [vercelPreset()], | |
| }), | |
| vanillaExtractPlugin(), | |
| tsconfigPaths(), | |
| ], | |
| }) | |