0.0.1 • Published 4 years ago

parcel-plugin-html-root-syntax-all-links v0.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

parcel-plugin-html-root-syntax

npm install parcel-plugin-html-root-syntax

Input

<link rel="stylesheet" href="#/base.css">
<script src="#/config.js"></script>

Output

<link rel="stylesheet" href="/base.css">
<script src="/config.js"></script>

Why?

Parcel will try to bundle any script or link tag with an absolute or relative path in a html entry file. Parcel will ignore paths prefixed with # and this plugin cleans up the paths when bundled.

See more