chunk-rename-webpack-plugin
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "chunk-rename-webpack-plugin", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Webpack plugin to name chunk files independently of output.filename & output.chunkFilename", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -9,7 +9,7 @@ # chunk-rename-webpack-plugin | ||
This plugin allows you to rename specific chunks in your bundle independently from the configuration you set in `output.filename` and `output.chunkFilename`. Tested with webpack 1 and 2! | ||
This plugin allows you to rename specific chunks in your bundle independently from the configuration you set in `output.filename` and `output.chunkFilename`. Works with webpack 1+. | ||
## Use cases | ||
In general: Your output file names do not follow a consistent pattern. | ||
* You want to hash all but one of your files (e.g. you have a file `loader.js`, that needs a static name, but all other files should be hashed) | ||
* You want to hash all but one of your files (e.g. you have a file `init.js`, that needs a static name, but all other files should be hashed) | ||
* You want some files to use the module name (`[name]`) and some files to use the module id (`[id]`) | ||
@@ -30,3 +30,3 @@ * And others ... | ||
entry: { | ||
loader: "./src/loader.js", | ||
init: "./src/init.js", | ||
vendor: "./src/vendor.js" | ||
@@ -43,3 +43,3 @@ }, | ||
new ChunkRenamePlugin({ | ||
loader: "loader.js", | ||
init: "init.js", | ||
login: "chunk-[name]-page.js" | ||
@@ -57,7 +57,7 @@ }) | ||
Asset Size Chunks Chunk Names | ||
loader.js 4.2 kB 0 [emitted] loader | ||
login-page.js 117 bytes 1 [emitted] login | ||
init.js 4.2 kB 0 [emitted] init | ||
chunk-login-page.js 117 bytes 1 [emitted] login | ||
summary-8079db00b7b1bd6a78e6.js 113 bytes 2 [emitted] summary | ||
vendor-ae2570120d44d2ba301c.js 1.43 kB 3 [emitted] vendor | ||
[0] ./src/loader.js 440 bytes {0} [built] | ||
[0] ./src/init.js 440 bytes {0} [built] | ||
[0] ./src/vendor.js 39 bytes {3} [built] | ||
@@ -64,0 +64,0 @@ [1] ./src/loginPage.js 30 bytes {1} [built] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7235