assets-webpack-plugin
Advanced tools
Comparing version 6.0.0-alpha.3 to 6.0.0-alpha.4
@@ -5,4 +5,4 @@ 'use strict'; | ||
var SIMPLE_PLACEHOLDER_RX = /^\[(id|name|file|query|filebase)\]/i; | ||
var HASH_PLACEHOLDER_RX = /^\[((?:chunk)?hash)(?::(\d+))?\]/i; | ||
var SIMPLE_PLACEHOLDER_RX = /^\[(id|name|file|query|filebase)]/i; | ||
var HASH_PLACEHOLDER_RX = /^\[((?:full)?(?:chunk)?hash)(?::(\d+))?]/i; | ||
@@ -54,3 +54,3 @@ var templateCache = Object.create(null); | ||
replacement = data[placeholder] || ''; | ||
if (width && (placeholder === 'hash' || placeholder === 'chunkhash')) { | ||
if (width && (placeholder === 'hash' || placeholder === 'fullhash' || placeholder === 'chunkhash')) { | ||
replacement = replacement.slice(0, width); | ||
@@ -77,3 +77,3 @@ } | ||
* If there is no replacement field, then the value of placeholder will be null. | ||
* If the value of placeholder is either 'hash' or 'chunkhash', then width will be a positive integer. | ||
* If the value of placeholder is either 'hash', 'fullhash', or 'chunkhash', then width will be a positive integer. | ||
* Otherwise it will be left undefined. | ||
@@ -147,2 +147,3 @@ */ | ||
case 'hash': | ||
case 'fullhash': | ||
case 'chunkhash': | ||
@@ -149,0 +150,0 @@ pattern += '[0-9a-fA-F]'; |
{ | ||
"name": "assets-webpack-plugin", | ||
"version": "6.0.0-alpha.3", | ||
"version": "6.0.0-alpha.4", | ||
"description": "Emits a json file with assets paths", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -170,3 +170,2 @@ # assets-webpack-plugin | ||
to learn more. | ||
**NOTE** for webpack v5, `futureEmitAssets` is defaulted to `false` in development mode. This option requires `output.futureEmitAssets = true` in order to work. | ||
@@ -173,0 +172,0 @@ ```js |
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
598
40086
410