1
1
mirror of https://github.com/primer/css.git synced 2024-09-22 06:07:31 +03:00

rename lib/mdx -> lib/config

This commit is contained in:
Shawn Allen 2018-12-04 13:53:49 -08:00
parent 5d74233523
commit 32c4ee78dc
2 changed files with 2 additions and 8 deletions

View File

@ -3,7 +3,7 @@
const {join, resolve} = require('path')
const withPlugins = require('next-compose-plugins')
const mdx = require('./lib/mdx')
const configure = require('./lib/config')
const sass = require('@zeit/next-sass')
const pageExtensions = ['js', 'jsx', 'md', 'mdx']
@ -15,7 +15,7 @@ module.exports = withPlugins([
includePaths: [resolve(__dirname, '../modules')]
}
}),
mdx()
configure()
], {
/*
* Note: Prefixing assets with the fully qualified deployment URL
@ -29,11 +29,6 @@ module.exports = withPlugins([
},
webpack(config, {dev}) {
config.resolve.alias = {
docs: join(__dirname, 'src')
}
const {optimization} = config
if (optimization && Array.isArray(optimization.minimizer)) {
const terserPlugin = optimization.minimizer[0]
@ -44,7 +39,6 @@ module.exports = withPlugins([
}
/* eslint-enable camelcase, no-console */
}
return config
}
})