PostHTML plugin for prepending a base string to attribute values.
npm install posthtml-base-urlPrepend a string to source paths in your HTML
[![Version][npm-version-shield]][npm]
[![Build][github-ci-shield]][github-ci]
[![License][license-shield]][license]
[![Downloads][npm-stats-shield]][npm-stats]
This PostHTML plugin can prepend a string to various HTML attribute values and CSS property values.
Input:
``html`
Output:
`html`
Works on the following attributes:
- src=""href=""
- srcset=""
- poster=""
- background=""
-
... and the following CSS properties:
- background: url()background-image: url()
- @font-face { src: url() }
-
Both