remove console log
This commit is contained in:
parent
a515a2a687
commit
aee09a2c77
1 changed files with 23 additions and 20 deletions
|
|
@ -5,28 +5,31 @@ import { join } from 'path';
|
|||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
// Consult https://svelte.dev/docs/kit/integrations
|
||||
// for more information about preprocessors
|
||||
preprocess: [vitePreprocess(), mdsvex({
|
||||
extensions: ['.md'], layout: {
|
||||
blog: join(import.meta.dirname, './src/lib/layout/Blog.svelte')
|
||||
},
|
||||
highlight: {
|
||||
highlighter: (code, lang, meta) => {
|
||||
console.log(meta);
|
||||
return `<Components.pre code={\`${code}\`} lang={\`${lang}\`} />`;
|
||||
}
|
||||
}
|
||||
})],
|
||||
// Consult https://svelte.dev/docs/kit/integrations
|
||||
// for more information about preprocessors
|
||||
preprocess: [
|
||||
vitePreprocess(),
|
||||
mdsvex({
|
||||
extensions: ['.md'],
|
||||
layout: {
|
||||
blog: join(import.meta.dirname, './src/lib/layout/Blog.svelte')
|
||||
},
|
||||
highlight: {
|
||||
highlighter: (code, lang) => {
|
||||
return `<Components.pre code={\`${code}\`} lang={\`${lang}\`} />`;
|
||||
}
|
||||
}
|
||||
})
|
||||
],
|
||||
|
||||
kit: {
|
||||
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
|
||||
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
|
||||
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
|
||||
adapter: adapter()
|
||||
},
|
||||
kit: {
|
||||
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
|
||||
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
|
||||
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
|
||||
adapter: adapter()
|
||||
},
|
||||
|
||||
extensions: ['.svelte', '.md']
|
||||
extensions: ['.svelte', '.md']
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue