-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
40 lines (38 loc) · 1.26 KB
/
vite.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// https://vitejs.dev/config/
import { resolve } from 'path'
import { defineConfig } from 'vite'
// https://github.com/hmsk/vite-plugin-markdown
import Markdown, {Mode} from 'vite-plugin-markdown'
export default defineConfig({
plugins: [
Markdown({
mode: Mode.HTML,
// https://markdown-it.github.io/markdown-it/#MarkdownIt
markdownIt: {
html: true,
linkify: true,
typographer: true,
}})
],
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
foundations: resolve(__dirname, 'foundations/index.html'),
past_present_future: resolve(__dirname, 'past_present_future/index.html'),
neural_nets: resolve(__dirname, 'neural_nets/index.html'),
data_in_practice: resolve(__dirname, 'data_in_practice/index.html'),
data_companion: resolve(__dirname, 'data_in_practice/companion.html'),
ml_art: resolve(__dirname, 'ml_art/index.html'),
about: resolve(__dirname, 'about/index.html'),
text_versions: resolve(__dirname, 'text_versions/index.html'),
}
}
},
assetsInclude: ['writing/*.md'],
define: {
// required by wikipedia-preview (see wikipedia-preview/webpack.config.js)
APP_VERSION: 1,
GIT_HASH: null,
}
})