-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55ab824
commit 6117454
Showing
13 changed files
with
220 additions
and
3,380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang=""> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0" /> | ||
<title><%= htmlWebpackPlugin.options.title %></title> | ||
<title>Ulixee</title> | ||
</head> | ||
<body> | ||
<noscript> | ||
<strong | ||
>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without | ||
JavaScript enabled. Please enable it to continue.</strong | ||
>We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it | ||
to continue.</strong | ||
> | ||
</noscript> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
<!-- built files will be auto injected --> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/// <reference types="vite/client" /> | ||
/// <reference types="vite-svg-loader" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { defineConfig } from 'vite'; | ||
import { fileURLToPath } from 'node:url'; | ||
import prismjs from 'vite-plugin-prismjs'; | ||
import vue from '@vitejs/plugin-vue'; | ||
import svgLoader from 'vite-svg-loader'; | ||
|
||
const outDir = process.env.BUILD_DIR ?? 'build'; | ||
const isDevelopment = !['production', 'test'].includes(process.env.NODE_ENV); | ||
|
||
export default defineConfig({ | ||
base: isDevelopment ? undefined : './', | ||
build: { | ||
rollupOptions: { | ||
input: { | ||
index: fileURLToPath(new URL('./index.html', import.meta.url)), | ||
}, | ||
}, | ||
outDir: fileURLToPath(new URL(`../../${outDir}/datastore/docpage/dist`, import.meta.url)), | ||
// needed for commonjs to be activated for @ulixee deps | ||
commonjsOptions: { include: [] }, | ||
emptyOutDir: true, | ||
sourcemap: 'inline', | ||
}, | ||
plugins: [ | ||
vue({ | ||
template: { | ||
compilerOptions: { | ||
whitespace: 'preserve', | ||
}, | ||
}, | ||
}), | ||
svgLoader({ | ||
svgoConfig: { | ||
multipass: true | ||
} | ||
}), | ||
prismjs({ | ||
languages: ['javascript', 'typescript', 'shell'], | ||
}), | ||
], | ||
resolve: { | ||
alias: { | ||
'@': fileURLToPath(new URL('./src', import.meta.url)), | ||
}, | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.