Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

assets-webpack-plugin

Package Overview
Dependencies
Maintainers
2
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assets-webpack-plugin - npm Package Compare versions

Comparing version 6.0.0-alpha.3 to 6.0.0-alpha.4

9

dist/lib/pathTemplate.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc