plmt-core-library
v1.9.116
Published
## Assets
Downloads
28
Readme
PLMT CoreLibrary
Assets
Не забудь добавить assets
в angular.json
{
"glob": "**/*.*",
"input": "node_modules/core-library/assets",
"output": "/assets/core-library"
}
И зарегистрировать core-icons
для работы иконок:
// src/main.ts
import { registerIconLibrary, setBasePath } from '@shoelace-style/shoelace';
setBasePath('assets/shoelace');
registerIconLibrary('core', {
resolver: (name) => `assets/core-library/icons/${name}.svg`,
});
Пример иконки в проекте:
<sl-icon library="core" name="file-name"></sl-icon>
Добавление стилей core-library
:
<!-- index.html -->
<link rel="stylesheet" href="assets/core-library/css/core-library.css" />