jonespen / kss-webpack-plugin

Generate KSS styleguide from Webpack
MIT License
10 stars 10 forks source link

Support / documentation: What are "chunks"? #14

Open donquixote opened 4 years ago

donquixote commented 4 years ago

Hello, I just found this plugin, looking for options to generate a style guide with webpack (or rather laravel-mix).

The README.md talks about "chunks", but does not explain what it means by that.

None of the chunks created by Webpack will be added to the styleguide by default - the developer is required to include those manually.

I also don't see how I would "include those manually".

The suggested config adds two keys to the webpack config: entry, and output. The README.md does not really explain what these mean, and whether they conflict with other parts of my mix config.

It is up to you if you see this as a support request or a request to improve the README..

Background

I am creating a sub-theme for Drupal 8 radix, and this is my starting point for webpack.mix.js: https://git.drupalcode.org/project/radix/blob/8.x-4.6/src/kits/default/webpack.mix.js

The goal is to have a living style guide and the generated SASS, browser sync and source maps.