Skip to content

Commit

Permalink
💚 disable modern for faster build
Browse files Browse the repository at this point in the history
  • Loading branch information
moisout committed Sep 16, 2020
1 parent f2455f8 commit 3ec27cc
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ module.exports = {
apiUrl: process.env.VIEWTUBE_API_URL
},

modern: true,

head: {
meta: [
{ charset: 'utf-8' },
Expand Down Expand Up @@ -120,7 +118,22 @@ module.exports = {
})
]
},
terser: {
parallel: true,
cache: false,
sourceMap: false,
extractComments: false,
terserOptions: {
ecma: 2020,
mangle: true
}
},
indicator: true,
transpile: ['vue-material-design-icons', 'dashjs', 'tippy.js'],
extend(config, ctx) {}
extend(config, { isClient }) {
if (isClient) {
config.optimization.splitChunks.maxSize = 200000;
}
}
}
};

0 comments on commit 3ec27cc

Please sign in to comment.