chore(config): 🔨 change css bundle to @jotsr/smart-css-bundler
This commit is contained in:
parent
503d8425c2
commit
5dd9f00599
|
@ -28,8 +28,8 @@
|
|||
],
|
||||
"imports": {
|
||||
"$fresh/": "https://deno.land/x/fresh@1.6.8/",
|
||||
"preact": "https://esm.sh/preact@10.19.6",
|
||||
"preact/": "https://esm.sh/preact@10.19.6/",
|
||||
"$std/": "https://deno.land/std@0.208.0/",
|
||||
"@jotsr/smart-css-bundler": "jsr:@jotsr/smart-css-bundler@^0.1.0",
|
||||
"@preact/signals": "https://esm.sh/*@preact/signals@1.2.2",
|
||||
"@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1",
|
||||
"$std/": "https://deno.land/std@0.208.0/",
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
import { defineConfig } from '$fresh/server.ts'
|
||||
import { cssBundler } from 'css_bundler'
|
||||
import { cssBundler } from '@jotsr/smart-css-bundler/fresh'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
cssBundler(
|
||||
import.meta.resolve('./src/stylesheets'),
|
||||
import.meta.resolve('./cache'),
|
||||
{ logLevel: 'error' },
|
||||
['./src/stylesheets/main.css'],
|
||||
{
|
||||
cacheDir: './_fresh/smart_css_bundler/cache',
|
||||
externalPaths: [],
|
||||
}
|
||||
),
|
||||
],
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue