const path = require ( 'path' ) ; typedef { import ( '@docusaurus/types' ) . LoadContext } Context typedef { import ( '@docusaurus/types' ) . Plugin } DocPlugin param { Context } context param { { } } options returns { DocPlugin } function basicPlugin ( _context , _options ) { return { name : 'basic-plugin' , configurePostCss ( options ) { options . plugins . push ( require ( 'postcss-import' ) , require ( 'postcss-nested' ) , require ( 'autoprefixer' ) ) ; return options ; } , configureWebpack ( config , isServer , utils ) { return { externals : { jsdom : 'commonjs jsdom' , domino : 'commonjs domino' } , resolve : { alias : { '@components' : path . resolve ( __dirname , '../src/components' ) , } , } , } ; } , } ; } module . exports = basicPlugin ;