1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
Add options to customize webpack config section.
This commit is contained in:
Truong Hoang Dung 2019-02-13 13:08:41 +07:00 committed by Tim Neutkens
parent f43e1a95f1
commit 10f41f5d47

View file

@ -1575,7 +1575,7 @@ Example usage of `defaultLoaders.babel`:
// This source was taken from the @zeit/next-mdx plugin source:
// https://github.com/zeit/next-plugins/blob/master/packages/next-mdx
module.exports = {
webpack: (config, {}) => {
webpack: (config, options) => {
config.module.rules.push({
test: /\.mdx/,
use: [