Skip to content

Commit

Permalink
feat: added nuxt buildModules webpackOptimisations and compress
Browse files Browse the repository at this point in the history
  • Loading branch information
wommy committed Nov 1, 2024
1 parent 2b18efd commit 27c3320
Show file tree
Hide file tree
Showing 6 changed files with 1,673 additions and 296 deletions.
9 changes: 9 additions & 0 deletions client/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ module.exports = {
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
// https://go.nuxtjs.dev/tailwindcss
'nuxt-webpack-optimisations',
'nuxt-compress',
'@nuxtjs/pwa'
],

Expand Down Expand Up @@ -112,7 +114,14 @@ module.exports = {
},

// Build Configuration: https://go.nuxtjs.dev/config-build
modern: true,
build: {
parallel: true,
splitChunks: {
layouts: true,
pages: true,
commons: true
},
postcss: {
postcssOptions: {
plugins: {
Expand Down
Loading

0 comments on commit 27c3320

Please sign in to comment.