0.1.0 • Published 5 years ago
print-chunks-plugin-extended v0.1.0
print-chunks-plugin-extended
Outputs which files went into which chunk for webpack, with some options.
This was made in mind of laravel-mix. For .scss files, the imports are also included (css-loader).
Code taken from webpack documentation (https://webpack.js.org/api/compilation-hooks/#afteroptimizechunkassets) and extended.
Options
Option | Type | Description |
---|---|---|
ignoreVueLoader | Boolean | Ignore vue-loader files; only include concrete .vue files |
includeSize | Boolean | Print file size in kB of included files |
Usage
const PrintChunksPluginExtended = require('print-chunks-plugin-extended');
const webpackConfig = {
plugins: [new PrintChunksPluginExtended({ ...options })]
};
Usage with laravel-mix
const PrintChunksPluginExtended = require('print-chunks-plugin-extended');
mix.webpackConfig({
plugins: [
new PrintChunksPluginExtended({ ...options })
]
});
0.1.0
5 years ago