postcss-smart-asset
Advanced tools
Comparing version 0.6.2 to 0.7.0
@@ -1,2 +0,2 @@ | ||
/*! postcss-smart-asset v0.6.2 by Sebastian Software <s.werner@sebastian-software.de> */ | ||
/*! postcss-smart-asset v0.7.0 by Sebastian Software <s.werner@sebastian-software.de> */ | ||
'use strict'; | ||
@@ -178,3 +178,3 @@ | ||
if (options.useHash && options.prependName) { | ||
if (options.useHash && options.keepName) { | ||
pathObj = path.parse(assetRelativePath); | ||
@@ -181,0 +181,0 @@ fileName = path.parse(asset.relativePath).name; |
@@ -1,2 +0,2 @@ | ||
/*! postcss-smart-asset v0.6.2 by Sebastian Software <s.werner@sebastian-software.de> */ | ||
/*! postcss-smart-asset v0.7.0 by Sebastian Software <s.werner@sebastian-software.de> */ | ||
import 'core-js/modules/es6.regexp.search'; | ||
@@ -173,3 +173,3 @@ import 'core-js/modules/es6.array.map'; | ||
if (options.useHash && options.prependName) { | ||
if (options.useHash && options.keepName) { | ||
pathObj = path.parse(assetRelativePath); | ||
@@ -176,0 +176,0 @@ fileName = path.parse(asset.relativePath).name; |
{ | ||
"name": "postcss-smart-asset", | ||
"version": "0.6.2", | ||
"version": "0.7.0", | ||
"description": "PostCSS plugin to rebase or inline on url().", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
"dependencies": { | ||
"asset-hash": "^2.1.4", | ||
"asset-hash": "^2.1.5", | ||
"cp-file": "^6.0.0", | ||
@@ -38,0 +38,0 @@ "mime": "^2.3.1", |
@@ -179,4 +179,4 @@ # PostCSS Smart Asset<br/>[![Sponsored by][sponsor-img]][sponsor] [![Version][npm-version-img]][npm] [![Downloads][npm-downloads-img]][npm] [![Build Status Unix][travis-img]][travis] [![Build Status Windows][appveyor-img]][appveyor] [![Dependencies][deps-img]][deps] | ||
* `assetsPath` - directory to copy assets (relative to `to` or absolute) | ||
* `useHash` - use filehash(xxhash) for naming | ||
* `prependName` - use filename__hash as filename (assuming useHash is also true) | ||
* `useHash` - use content hash of file for naming | ||
* `keepName` - use `filename-hash` as filename (assuming useHash is also true) | ||
* `hashOptions` - options for hash function | ||
@@ -272,3 +272,3 @@ * `custom {Function}` | ||
#### `prependName` | ||
#### `keepName` | ||
@@ -281,16 +281,8 @@ _(default: `false`)_ | ||
##### `method` | ||
_(default: `{}`)_ | ||
_(default: `null`)_ | ||
Any options supported by the underlying [asset-hash](https://www.npmjs.com/package/asset-hash) library. Uses defaults of this library by default. | ||
Uses default method of [asset-hash](https://www.npmjs.com/package/asset-hash) library. | ||
##### `shrink` | ||
_(default: `8`)_ | ||
Result hash shrink count | ||
## License | ||
@@ -297,0 +289,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
113144
295
Updatedasset-hash@^2.1.5