-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
45 lines (44 loc) · 1.11 KB
/
nuxt.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
41
42
43
44
45
// https://nuxt.com/docs/api/configuration/nuxt-config
import commonjs from 'vite-plugin-commonjs'
import {nodePolyfills} from 'vite-plugin-node-polyfills'
import topLevelAwait from "vite-plugin-top-level-await";
import wasm from "vite-plugin-wasm";
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
ssr:false,
modules: ["@nuxtjs/tailwindcss","shadcn-nuxt", "@pinia/nuxt"],
shadcn: {
prefix: '',
componentDir: './components/ui'
},
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
vite: {
plugins: [
commonjs(),
nodePolyfills({
protocolImports: true,
globals: {
Buffer: true, // can also be 'build', 'dev', or false
global: true,
},
}),
wasm(),
topLevelAwait()
],
optimizeDeps: {
include: ['ecpair', 'bitcoinjs-lib', 'tiny-secp256k1'] // Example of a CJS module to optimize
},
resolve: {
alias: {
buffer: 'buffer'
}
}
},
css: ['~/assets/css/global.css'],
})