Remove svelte-image

This commit is contained in:
Michal Vanko 2021-04-21 12:40:03 +02:00
parent 17c8e0e494
commit 59e015ddaa
3 changed files with 289 additions and 2077 deletions

2355
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -23,8 +23,7 @@
"marked": "^1.2.5", "marked": "^1.2.5",
"polka": "^0.5.2", "polka": "^0.5.2",
"ramda": "^0.27.1", "ramda": "^0.27.1",
"sirv": "^1.0.7", "sirv": "^1.0.7"
"svelte-image": "^0.2.7"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.12.9", "@babel/core": "^7.12.9",

View File

@ -7,7 +7,6 @@ import { terser } from 'rollup-plugin-terser'
import config from 'sapper/config/rollup.js' import config from 'sapper/config/rollup.js'
import pkg from './package.json' import pkg from './package.json'
import svg from 'rollup-plugin-svg' import svg from 'rollup-plugin-svg'
// import image from 'svelte-image'
import sveltePreprocess from 'svelte-preprocess' import sveltePreprocess from 'svelte-preprocess'
import typescript from '@rollup/plugin-typescript' import typescript from '@rollup/plugin-typescript'
@ -38,10 +37,6 @@ export default {
hydratable: true, hydratable: true,
}, },
emitCss: true, emitCss: true,
// Disabled automatic image compression
// preprocess: {
// ...image(),
// },
preprocess: sveltePreprocess({ preprocess: sveltePreprocess({
sourceMap: dev, sourceMap: dev,
defaults: { defaults: {
@ -109,9 +104,6 @@ export default {
script: 'typescript', script: 'typescript',
}, },
}), }),
// preprocess: {
// ...image(),
// },
}), }),
resolve({ resolve({
dedupe, dedupe,