Skip to content

Commit

Permalink
Don't use __dirname unnecessarily and remove unnecessary tailwind config
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed May 8, 2024
1 parent ed660a4 commit 3476dec
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions nuxt.config.js
Expand Up @@ -11,7 +11,7 @@ module.exports = {
// Target: https://go.nuxtjs.dev/config-target
target: 'static',

loadingIndicator: path.join(__dirname, 'assets/loading.html'),
loadingIndicator: 'assets/loading.html',

publicRuntimeConfig: {
isDistributing: true,
Expand Down Expand Up @@ -69,13 +69,13 @@ module.exports = {

// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
path.join(__dirname, 'plugins/shiki'),
path.join(__dirname, 'plugins/queue'),
path.join(__dirname, 'plugins/events'),
path.join(__dirname, 'plugins/ipc-fake'),
path.join(__dirname, 'plugins/v-tooltip'),
path.join(__dirname, 'plugins/vue-tailwind'),
path.join(__dirname, 'plugins/auto-animate'),
'plugins/shiki',
'plugins/queue',
'plugins/events',
'plugins/ipc-fake',
'plugins/v-tooltip',
'plugins/vue-tailwind',
'plugins/auto-animate',
],

// Auto import components: https://go.nuxtjs.dev/config-components
Expand All @@ -95,7 +95,17 @@ module.exports = {
},
},

router: isDesktop
? {
mode: 'hash',
base: './',
}
: {},

pwa: {
workbox: {
enabled: !isDesktop,
},
meta: {
favicon: '/favicon.ico',
},
Expand All @@ -121,7 +131,7 @@ module.exports = {
plugins: {
'postcss-import': {},
'tailwindcss/nesting': {},
tailwindcss: { config: path.join(__dirname, 'tailwind.config.js') },
tailwindcss: {},
'postcss-hexrgba': {},
autoprefixer: {},
},
Expand Down

0 comments on commit 3476dec

Please sign in to comment.