Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommytrg committed Jul 18, 2024
1 parent 6f66764 commit 9e85587
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ import svgLoader from 'vite-svg-loader'
import { languageLocales } from './constants'

export default defineNuxtConfig({
build: {
extend(config, { isDev, isClient }) {
config.plugins.push(
new webpack.DefinePlugin({
'process.env.DEBUG': JSON.stringify(true)
})
)
},
devtools: { enabled: true },
postcss: {
plugins: {
Expand Down Expand Up @@ -36,6 +44,9 @@ export default defineNuxtConfig({
css: ['~/assets/styles/tailwind.css'],
components: [{ path: '~/components', pathPrefix: false }],
vite: {
define: {
'process.env.DEBUG': JSON.stringify(true)
},
plugins: [
svgLoader({
svgoConfig: {
Expand Down

0 comments on commit 9e85587

Please sign in to comment.