0.1.1 • Published 7 years ago

webpack-async-chunk-names-plugin v0.1.1

Weekly downloads
1,396
License
MIT
Repository
github
Last release
7 years ago

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!