about summary refs log tree commit diff
path: root/nuxt.config.js
diff options
context:
space:
mode:
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']