@advclb/sassdoc-loader

the only up-to-date sassdoc loader for webpack

Usage no npm install needed!

<script type="module">
  import advclbSassdocLoader from 'https://cdn.skypack.dev/@advclb/sassdoc-loader';
</script>

README

SassDoc Loader For Webpack

The only up-to-date package.

Installation

npm i -D @advclb/sassdoc-loader

Inline usage:

import doc from "!!@advclb/sassdoc-loader!./mixins.scss";

Global usage:

// webpack.config.js
module.exports = {
  module: {
    rules: [
      {
        test: /\.s[ac]ss$/i,
        use: "@advclb/sassdoc-loader",
      },
    ],
  },
};

With configuration:

// webpack.config.js
module.exports = {
  module: {
    rules: [
      {
        test: /\.s[ac]ss$/i,
        use: [
          {
            loader: "@advclb/sassdoc-loader",
            options: {
              groups: {
                layout: "Layouts",
                helpers: "Helpers",
                undefined: "Utilities",
              },
              verbose: true,
            },
          },
        ],
      },
    ],
  },
};

See full SassDoc configuration

Copyright

Guo Yunhe

License

GNU General Public License version 3