8000 plugin updator/installer by mattn · Pull Request #170 · previm/previm · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@mattn
Copy link
Member
@mattn mattn commented Jun 14, 2022

This implementation add feature to add extra libraries. User can add extra library.

let g:previm_extra_libraries = [
\  {
\    'name': 'foobar',
\    'files': [
\      {
\        'type': 'js',
\        'path': 'preview/_/js/extra/foobar.js',
\        'url': 'https://cdn.jsdelivr.net/gh/foobar/cdn-release@latest/build/foobar.min.js',
\        'code': ['foobar.init();'],
\      },
\      {
\        'type': 'css',
\        'path': 'preview/_/css/extra/foobar.css',
\        'url': 'https://cdn.jsdelivr.net/gh/foobar/cdn-release@latest/build/styles/default.min.css',
\      },
\    ],
\  },
\]

type css is extracted to preview/_/css/extra and js is preview/_/js/extra. If code to initialize is required, you can add code list. Then, :PrevimUpdateAssets install the extra libraries.

@mattn mattn changed the title add autolooad/previm/assets.vim plugin updator/installer Jun 14, 2022
@mattn mattn merged commit 605bf39 into master Jun 14, 2022
@mattn mattn deleted the updator branch June 14, 2022 05:48
Sign up for free to 5784 join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0