mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-04 20:39:40 +00:00
add suffix to assets entrypoints + replace link/script html tags by encore_entry twig tag
This commit is contained in:
@@ -45,23 +45,19 @@ module.exports = function(encore, entries)
|
||||
// Aliases are used when webpack is trying to resolve modules path
|
||||
encore.addAliases({
|
||||
ChillMainAssets: __dirname + '/Resources/public',
|
||||
//ChillMainSass: __dirname + '/Resources/public/modules/scratch',
|
||||
ShowHide: __dirname + '/Resources/public/modules/show_hide'
|
||||
});
|
||||
|
||||
// Add separate entrypoints
|
||||
encore.addEntry('login', __dirname + '/Resources/public/modules/login_page/index.js');
|
||||
//encore.addEntry('scratch', __dirname + '/Resources/public/modules/scratch/index.js');
|
||||
// Page entrypoints
|
||||
encore.addEntry('page_login', __dirname + '/Resources/public/modules/login_page/index.js');
|
||||
|
||||
// Chill2 new assets
|
||||
encore.addEntry('forkawesome', __dirname + '/Resources/public/modules/forkawesome/index.js');
|
||||
encore.addEntry('bootstrap', __dirname + '/Resources/public/modules/bootstrap/index.js');
|
||||
|
||||
// CKEditor5
|
||||
// Modules entrypoints
|
||||
encore.addEntry('mod_forkawesome', __dirname + '/Resources/public/modules/forkawesome/index.js');
|
||||
encore.addEntry('mod_bootstrap', __dirname + '/Resources/public/modules/bootstrap/index.js');
|
||||
buildCKEditor(encore);
|
||||
encore.addEntry('ckeditor5', __dirname + '/Resources/public/modules/ckeditor5/index.js');
|
||||
encore.addEntry('mod_ckeditor5', __dirname + '/Resources/public/modules/ckeditor5/index.js');
|
||||
|
||||
// Address
|
||||
// Vue entrypoints
|
||||
encore.addEntry('vue_address', __dirname + '/Resources/public/vuejs/Address/index.js');
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user