Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 760 Bytes

File metadata and controls

37 lines (30 loc) · 760 Bytes

@fullscript/docusaurus-plugin-webpack

A docusaurus v2 plugin for extending/modifying the underlying webpack config.

NOTE: This is provided without support, use at your own risk.

Installation

yarn add https://github.com/Fullscript/docusaurus-plugin-webpack#1.0.0

Usage

// docusaurus.config.js

module.exports = {
  // ...
  plugins: [
    [
      "@fullscript/docusaurus-plugin-webpack",
      {
        // Configuration for webpack-merge
        mergeStrategy: { plugins: "append", resolve: "merge" },
        // Any valid webpack configuration
        resolve: {
          alias: {
            "@foobar": "some/path",
          },
        },
        plugins: [
          new MyWebpackPlugin(),
        ],
      },
    ],
  ],
};