Welcome!

Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

Sign up

You need to be registered to interact with the community.
This question has been flagged
1 Reply
45 Views

Hey Cyllo folks, how do I add custom CSS and JS to a module's manifest? I'm trying to tweak the styling a bit. Any tips?

Avatar
Discard

That's a great question about how to manage assets in your manifest! Here's how you can add all your JavaScript, XML templates, and CSS files directly under the 'assets' key. 

'assets': {
    'web.assets_backend': [
        'my_module/static/src/js/product_category.js',
        'my_module/static/src/xml/product_templates.xml',
        'my_module/static/src/css/style.css',
    ],
    'web.assets_frontend': [],
},
Avatar
Discard

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!