Skip to content

Commit

Permalink
revert and try adding vite.config.ts instead
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Apr 27, 2024
1 parent 93799da commit 7675dc9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineNuxtConfig } from 'nuxt/config'
//import { nodePolyfills } from 'vite-plugin-node-polyfills';
import { nodePolyfills } from 'vite-plugin-node-polyfills';
export default defineNuxtConfig({
app: {
head: {
Expand Down Expand Up @@ -60,11 +60,11 @@ export default defineNuxtConfig({
imports: {
autoImport: false,
},
// hooks: {
// 'vite:extendConfig': (config) => {
// config.plugins!.push(nodePolyfills()); // unshift ?
// },
// },
hooks: {
'vite:extendConfig': (config) => {
config.plugins!.push(nodePolyfills()); // unshift ?
},
},
css: ['~/assets/scss/main.scss'],
modules: ['nuxt-svgo', '@pinia/nuxt', '@nuxt/content', '@nuxt/ui', '@nuxtjs/tailwindcss' ],
plugins: [{ src: '~/plugins/lockScroll', mode: 'client' }],
Expand Down
8 changes: 8 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from 'vite';
import { nodePolyfills } from 'vite-plugin-node-polyfills';

export default defineConfig({
plugins: [
nodePolyfills(),
],
});

0 comments on commit 7675dc9

Please sign in to comment.