A webpack plugin that names on-demand chunks created by System.import() or import() by parsing the requested filename. Current version 0.1.1 is marked as WIP with expected bugs and breaking changes. It attempts to guess chunk names automatically, but has no active development or maintenance. Key differentiators: lightweight, zero-config plugin for naming async chunks. Compared to webpack's built-in chunk naming, this plugin tries to infer names from file paths.
npm install webpack-async-chunk-names-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Adds AsyncChunkNames plugin to webpack config, requiring output.chunkFilename to use [name] placeholder.
Consider alternative plugins or webpack built-in chunk naming.
If using webpack >=3, do not use this plugin; use webpack's default [name] via output.chunkFilename.
Ensure import paths are straightforward; test chunk naming in output.
npm install webpack-async-chunk-names-plugin --save-dev
Use const AsyncChunkNames = require('webpack-async-chunk-names-plugin');Set output.chunkFilename to something like '[name].[chunkhash].js'