title: Webpack Obfuscator not working in next.js app
body: <p>How do I obfuscate my next.js app?</p>
  <p>I've built it in the nextron framework.</p>
  <p>This is my next.config.js:</p>
  <pre><code>const WebpackObfuscator = require('webpack-obfuscator');
  
  module.exports = {
      webpack: (config, { dev, isServer }) =&gt; {
          config.target = 'electron-renderer';
  
          if (!dev) {
              config.plugins.push(
                  new WebpackObfuscator({
                      controlFlowFlattening: true,
                      controlFlowFlatteningThreshold: 0.5,
                      deadCodeInjection: true,
                      debugProtection: true,
                      identifierNamesGenerator: 'mangled',
                      selfDefending: true,
                      stringArrayEncoding: true,
                  }),
              );
          }
  
          return config;
      },
  };
  </code></pre>
  <p>When I run yarn build, I get:</p>
  <pre><code>[Error: UNKNOWN: unknown error, copyfile 'C:\Users\x\Documents\x\renderer\.next\static\chunks\webpack-95c2b224bccf352ee870.js' -&gt; 'C:\Users\x\Documents\x\app\_next\static\chunks\webpack-95c2b224bccf352ee870.js'] {
    errno: -4094,
    code: 'UNKNOWN',
    syscall: 'copyfile',
    path: 'C:\\Users\\x\\Documents\\x\\renderer\\.next\\static\\chunks\\webpack-95c2b224bccf352ee870.js',
    dest: 'C:\\Users\\x\\Documents\\x\\app\\_next\\static\\chunks\\webpack-95c2b224bccf352ee870.js'
  }
  </code></pre>
  <p>The version of Webpack Obfuscator is ^0.28.2. I don't really know how next works so if anyone can help me with this, that would be great.</p>