Register the Hexo generator for exporting text-based asset files like JavaScript and CSS.
- Source:
(require("hexo/generator/assets"))(hexo)
Register the Hexo generator for exporting text-based asset files like JavaScript and CSS.
The asset files are under the asset/ folder of this library. If a file of the same path already exists in the theme's source folder, the asset file in this library will not be exported.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
hexo |
Hexo
|
The Hexo instance. |