hexo-filter-asset-inline
Inline remote and local asset files when generate site. Supports CSS and JS files.
Instalation
To install hexo-filter-asset-inline
run:
npm install hexo-filter-asset-inline --save
Usage
Append __inline=true
to the URL or relative path of asset file. Make sure __inline=true
is at the end of path or URL.
Examples:
For local css with relative path.
<!--will be inlined--><!--will not inlined--><!--will not inlined-->
For remote css with URL.
<!--will be inlined--><!--will not inlined--><!--will not inlined-->
For local js with relative path.
<!--will be inlined--><!--will not inlined--><!--will not inlined-->
For remote js with URL.
<!--will be inlined--><!--will not inlined--><!--will not inlined-->
Known Issue
- not support font-awesome css
- not support web font css