Answer the question
In order to leave comments, you need to log in
How to configure WebpackCdnPlugin for Nuxt SSR?
Used WebpackCdnPlugin before to reduce build for client. Then vuex, vue-router, axios and other external dependencies connected through it. Now I tried to enable SSR and it didn't work. I did not find packages configured via WebpackCdnPlugin - if I disable it completely, then the build works.
Are they incompatible?
Answer the question
In order to leave comments, you need to log in
On the server will not work, do it only for the client.
extend(config, { isClient }) {
// Extend only webpack config for client-bundle
if (isClient) {
config.devtool = 'source-map'
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question