Skip to content

Joe-Withey/parcel-plugin-html-root-syntax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published