parcel-plugin-html-root-syntax
v0.0.3
Published
``` npm install parcel-plugin-html-root-syntax ```
Downloads
162
Readme
parcel-plugin-html-root-syntax
npm install parcel-plugin-html-root-syntaxInput
<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.
