feat: more stuff

This commit is contained in:
Jacob Babich
2021-04-16 21:30:02 -04:00
parent 2ac0c9862d
commit acdbbe6d21
15 changed files with 1203 additions and 821 deletions

View File

@@ -1,3 +1,4 @@
const imagetools = require('vite-imagetools');
const { mdsvex } = require("mdsvex");
const mdsvexConfig = require("./mdsvex.config.cjs");
const sveltePreprocess = require('svelte-preprocess');
@@ -12,9 +13,7 @@ module.exports = {
preprocess: [
mdsvex(mdsvexConfig),
sveltePreprocess({
defaults: {
style: "postcss",
},
postcss: true,
}),
],
kit: {
@@ -24,9 +23,14 @@ module.exports = {
target: '#svelte',
vite: {
plugins: [
imagetools({
force: true
}),
],
ssr: {
noExternal: Object.keys(pkg.dependencies || {})
}
}
}
},
},
},
};