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} */
|
/** @type {import('@sveltejs/kit').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
// Consult https://svelte.dev/docs/kit/integrations
|
// Consult https://svelte.dev/docs/kit/integrations
|
||||||
// for more information about preprocessors
|
// for more information about preprocessors
|
||||||
preprocess: [vitePreprocess(), mdsvex({
|
preprocess: [
|
||||||
extensions: ['.md'], layout: {
|
vitePreprocess(),
|
||||||
blog: join(import.meta.dirname, './src/lib/layout/Blog.svelte')
|
mdsvex({
|
||||||
},
|
extensions: ['.md'],
|
||||||
highlight: {
|
layout: {
|
||||||
highlighter: (code, lang, meta) => {
|
blog: join(import.meta.dirname, './src/lib/layout/Blog.svelte')
|
||||||
console.log(meta);
|
},
|
||||||
return `<Components.pre code={\`${code}\`} lang={\`${lang}\`} />`;
|
highlight: {
|
||||||
}
|
highlighter: (code, lang) => {
|
||||||
}
|
return `<Components.pre code={\`${code}\`} lang={\`${lang}\`} />`;
|
||||||
})],
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
],
|
||||||
|
|
||||||
kit: {
|
kit: {
|
||||||
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
|
// 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.
|
// 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.
|
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
|
||||||
adapter: adapter()
|
adapter: adapter()
|
||||||
},
|
},
|
||||||
|
|
||||||
extensions: ['.svelte', '.md']
|
extensions: ['.svelte', '.md']
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue