webpack-async-chunk-names-plugin
v0.1.1
Published
A webpack plugin for naming on-demand chunks
Downloads
3,634
Readme
webpack-async-chunk-names-plugin
A webpack plugin for naming on-demand chunks generated by System.import()
or import()
. Atempts to guess the chunk
name by parsing the requested filename.
WIP, expect bugs and breaking changes. PR's welcome!
Installation
As a devDependency!
npm i webpack-async-chunk-names-plugin -D
yarn add webpack-async-chunk-names-plugin -D
Usage
const AsyncChunkNames = require('webpack-async-chunk-names-plugin');
// webpack config
plugins: [
new AsyncChunkNames()
]
Don't forget to set output.chunkFilename!