diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-10-12 16:54:05 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-10-12 16:54:05 +0200 |
commit | 5cfbd5b71d149419b0b80056e652ca94d26f1a95 (patch) | |
tree | 4f61dd2e8822cec3613c0ef7f17f694afc42182e /nuxt.config.js | |
parent | d92f1a2a1bac3039434a16c504cc1d54c6d0409a (diff) | |
download | puszcza-5cfbd5b71d149419b0b80056e652ca94d26f1a95.tar.gz puszcza-5cfbd5b71d149419b0b80056e652ca94d26f1a95.zip |
Move to single api
Diffstat (limited to 'nuxt.config.js')
-rw-r--r-- | nuxt.config.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/nuxt.config.js b/nuxt.config.js index 7f66b21..016f39f 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -72,7 +72,15 @@ export default { /* ** You can extend webpack config here */ - extend(config, ctx) { + extend(config, { isDev, isClient }) { + if (isClient) { + config.node = { + fs: 'empty', + child_process: 'empty', + tls: 'empty', + net: 'empty' + } + } config.module.rules.push({ test: /\.md$/, use: ['raw-loader'] |