I am building an angular library using Angular 15. Here I am writing a wrapper component (my_component) to ckeditor (v4.22.1) with ckeditor4-angular (v4.0.1), which will be used in other angular apps. The structure is as below:
my_project
-> projects
-> my_library
-> my_module
-> assets
-> ckeditor
-> my_component
-> my_component.ts
my_component.html
-> my_module.module.ts
-> index.ts
-> ng-package.json
-> public-api.ts
-> src
-> assets
-> ckeditor
my_component.html:
<ckeditor
type="classic"
editorUrl="/assets/ckeditor/ckeditor.js"
config="/assets/ckeditor/config.js"
[id]="uniqueId"
[formControlName]="uniqueId"
></ckeditor>
Currently, I have ckeditor related files (ckeditor.json, config.js, plugins/ etc.) inside my_project/src/assets/ckeditor and have to manually copy it to all the projects that use my_component.
I want to move all these file to my_project/projects/my_library/my_module/assets/ckeditor. So that while building my_project, these files should be bundled along with my_module, so that wherever my_module is imported all the ckeditor related files are also imported
Good to have: Minification of ckeditor files while bundling.