refactor pagebuilder asset bundling
Migrate pagebuilder and core dist assets from legacy bundled format to modern Vite/Rolldown output. - Delete legacy pagebuilder app.css and app.js bundles in favor of per-module dist files. - Update page-injection.js to use template literals and add source map reference. - Refresh core dist files (PageBuilderBody, PageBuilderHead, WebsiteManager) with updated CSS/JS and remove UMD bundles. - Replace jQuery-dependent GrapesJS scripts with vanilla JS implementations. - Remove CKEditor hyperlinks module and replace with RTE link manager. - Delete external library bundles (Bootstrap, Popper, Toastr, Underscore, CKEditor) from dist.
This commit is contained in:
@@ -43,6 +43,17 @@ function cleanObsoleteArtifacts() {
|
||||
path.join(DIST_PB_DIR, 'app.css.map'),
|
||||
path.join(DIST_PB_DIR, 'app.js'),
|
||||
path.join(DIST_PB_DIR, 'app.js.map'),
|
||||
path.join(DIST_PB_DIR, 'ckeditor-full-all-v4.14.0.min.js'),
|
||||
path.join(DIST_PB_DIR, 'grapesjs-plugin-ckeditor-v0.0.10.min.js'),
|
||||
path.join(DIST_PB_DIR, 'bootstrap-select-v1.13.12.min.css'),
|
||||
path.join(DIST_PB_DIR, 'bootstrap-select-v1.13.12.min.js'),
|
||||
path.join(DIST_PB_DIR, 'bootstrap-v4.3.1.min.css'),
|
||||
path.join(DIST_PB_DIR, 'bootstrap-v4.3.1.min.js'),
|
||||
path.join(DIST_PB_DIR, 'jquery-3.4.1.min.js'),
|
||||
path.join(DIST_PB_DIR, 'popper-v1.12.9.min.js'),
|
||||
path.join(DIST_PB_DIR, 'toastr-v2.1.3.min.css'),
|
||||
path.join(DIST_PB_DIR, 'toastr-v2.1.3.min.js'),
|
||||
path.join(DIST_PB_DIR, 'underscore-v1.9.1.min.js'),
|
||||
];
|
||||
|
||||
for (const file of obsoleteFiles) {
|
||||
|
||||
Reference in New Issue
Block a user