mirror of
https://github.com/woutdp/live_svelte
synced 2026-05-24 09:28:21 +00:00
Add $lib
This commit is contained in:
parent
8aeb9cabb0
commit
d1706c7426
4 changed files with 20 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ let optsClient = {
|
|||
minify: deploy,
|
||||
sourcemap: watch ? "inline" : false,
|
||||
watch,
|
||||
tsconfig: "./tsconfig.json",
|
||||
plugins: [
|
||||
importGlobPlugin(),
|
||||
sveltePlugin({
|
||||
|
|
@ -36,6 +37,7 @@ let optsServer = {
|
|||
logLevel: "info",
|
||||
sourcemap: watch ? "inline" : false,
|
||||
watch,
|
||||
tsconfig: "./tsconfig.json",
|
||||
plugins: [
|
||||
importGlobPlugin(),
|
||||
sveltePlugin({
|
||||
|
|
|
|||
10
assets/copy/tsconfig.json
Normal file
10
assets/copy/tsconfig.json
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"types": ["node"],
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"$lib": ["svelte"],
|
||||
"$lib/*": ["svelte/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -16,6 +16,7 @@ let optsClient = {
|
|||
minify: deploy,
|
||||
sourcemap: watch ? "inline" : false,
|
||||
watch,
|
||||
tsconfig: "./tsconfig.json",
|
||||
plugins: [
|
||||
importGlobPlugin(),
|
||||
sveltePlugin({
|
||||
|
|
@ -36,6 +37,7 @@ let optsServer = {
|
|||
logLevel: "info",
|
||||
sourcemap: watch ? "inline" : false,
|
||||
watch,
|
||||
tsconfig: "./tsconfig.json",
|
||||
plugins: [
|
||||
importGlobPlugin(),
|
||||
sveltePlugin({
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"types": ["node"]
|
||||
"types": ["node"],
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"$lib": ["svelte"],
|
||||
"$lib/*": ["svelte/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue