Created
March 26, 2017 19:32
-
-
Save johhansantana/38fb563c912e81cb95fbbe2e2ad4343f to your computer and use it in GitHub Desktop.
Custom webpack in next.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
webpack: (config, { dev }) => { | |
// Perform customizations to config | |
config.node = { | |
fs: 'empty' | |
}; | |
return config | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment