Commit 10f41f5d authored by Truong Hoang Dung's avatar Truong Hoang Dung Committed by Tim Neutkens

Fix Docs (#6270)

Add options to customize webpack config section.
parent f43e1a95
...@@ -1575,7 +1575,7 @@ Example usage of `defaultLoaders.babel`: ...@@ -1575,7 +1575,7 @@ Example usage of `defaultLoaders.babel`:
// This source was taken from the @zeit/next-mdx plugin source: // This source was taken from the @zeit/next-mdx plugin source:
// https://github.com/zeit/next-plugins/blob/master/packages/next-mdx // https://github.com/zeit/next-plugins/blob/master/packages/next-mdx
module.exports = { module.exports = {
webpack: (config, {}) => { webpack: (config, options) => {
config.module.rules.push({ config.module.rules.push({
test: /\.mdx/, test: /\.mdx/,
use: [ use: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment