-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
45 lines (44 loc) · 1.19 KB
/
nuxt.config.ts
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
41
42
43
44
45
import { defineNuxtConfig } from 'nuxt'
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
export default defineNuxtConfig({
loading: {
color: 'blue',
},
runtimeConfig: {
public: {
publicUrl: process.env.PUBLIC_URL,
assetsUrl: process.env.ASSETS_URL,
}
},
css: [
'@wangeditor/editor/dist/css/style.css',
'~/assets/css/tailwind.css',
'@fortawesome/fontawesome-svg-core/styles.css'
],
buildModules: [
"@pinia/nuxt",
],
server: {
// https: {
// key: fs.readFileSync(fileURLToPath(new URL('./server.key', import.meta.url))),
// cert: fs.readFileSync(fileURLToPath(new URL('./server.crt', import.meta.url)))
// },
host: 'localhost',
port: 3000,
},
build: {
transpile: [
'@fortawesome/fontawesome-svg-core',
'@fortawesome/free-solid-svg-icons',
'@fortawesome/vue-fontawesome',
],
postcss: {
postcssOptions: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
},
}
})