about summary refs log tree commit diff
path: root/nuxt.config.js
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-12 16:54:05 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-12 16:54:05 +0200
commit5cfbd5b71d149419b0b80056e652ca94d26f1a95 (patch)
tree4f61dd2e8822cec3613c0ef7f17f694afc42182e /nuxt.config.js
parentd92f1a2a1bac3039434a16c504cc1d54c6d0409a (diff)
downloadpuszcza-5cfbd5b71d149419b0b80056e652ca94d26f1a95.tar.gz
puszcza-5cfbd5b71d149419b0b80056e652ca94d26f1a95.zip
Move to single api
Diffstat (limited to 'nuxt.config.js')
-rw-r--r--nuxt.config.js10
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']