Next.js: Example with custom webpack config

Created on 14 Feb 2017  路  2Comments  路  Source: vercel/next.js

I might have missed it, but didn't find an example showing the use of custom webpack config (except for the short snippet in the README). I'm trying to figure out how to stub 'fs' client-side so that I can still require that module server-side (https://github.com/zeit/next.js/issues/1091).

good first issue

Most helpful comment

Yes that's a start 馃憤 Would be worth linking from the README section on custom webpack config then. @timneutkens

All 2 comments

Does this do: https://github.com/zeit/next.js/blob/master/examples/with-webpack-bundle-analyzer/next.config.js

It shows how you can set custom options to webpack @sedubois

Yes that's a start 馃憤 Would be worth linking from the README section on custom webpack config then. @timneutkens

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Vista1nik picture Vista1nik  路  55Comments

Timer picture Timer  路  90Comments

Timer picture Timer  路  60Comments

dunika picture dunika  路  58Comments

robinvdvleuten picture robinvdvleuten  路  74Comments