https://github.com/ymfe/ydoc-plugin-import-asset
Import js and css files in the page
https://github.com/ymfe/ydoc-plugin-import-asset
Last synced: 6 months ago
JSON representation
Import js and css files in the page
- Host: GitHub
- URL: https://github.com/ymfe/ydoc-plugin-import-asset
- Owner: YMFE
- Created: 2018-01-18T09:16:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-26T11:51:11.000Z (almost 8 years ago)
- Last Synced: 2025-05-24T01:47:41.573Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ydoc-plugin-import-asset
Import js and css files in the page.import-assert is the default plugin in the ydoc.
## Usage
In the ydoc config file, configuration:
```
{
pluginsConfig: {
'import-asset': {
css: 'custom.css',
js: 'custom.js'
}
}
}
```