npm install parcel-plugin-html-root-syntax
<link rel="stylesheet" href="#/base.css">
<script src="#/config.js"></script>
<link rel="stylesheet" href="/base.css">
<script src="/config.js"></script>
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.