I am working on the new theme using webpack building css and js. There is no problems to work with styling sass/css, but the theme doesn't read js files after builded webpack. Is there way to get this?
I am trying to use packages and modules from the npm registry to generate the css and js needed for my theme. I use webpack to manage packages and get .css and .js output files. According to the developer documentation https://docs.backdropcms.org/documentation/creating-sub-themes I need to add files style sheets [all] [] = mystyle.css
and scripts [] = myscript.js
to the .info file. And it works correctly for both of them if I use a standalone js file. But the js file I get as output from webpack is not. This works for Drupal 9, so I thought it might work for Backdrop too. Let me know if I'm wrong.
Hi Kevin
I am interested assisting you developing a theme by cloning feature from existing WordPress website.
Please let me know your suitable time to discuss further...
Posted1 week 4 days ago by Deep Vyas (deepvyas) on:
I've updated the Zulip link in both places I found it. No need to post again, unless you have something new to say. We'll pull together feedback from all the sources.
Should we post here again, what we posted over there? Or would that unnecessarily duplicate things?
The link to a Zulip thread in this initial post leads to an internal one, but there's...
This is a really good idea. I nearly always search on GitHub if I'm not sure of the name.
That said, there is still room for improvement in GitHub as many repos have a useless description...
Posted2 weeks 4 hours ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:
Comments
I am not sure that I understand the question?
Are you building a new theme for Backdrop?
Can you provide a little more information about the specifics of your problem?
I am trying to use packages and modules from the npm registry to generate the css and js needed for my theme. I use webpack to manage packages and get .css and .js output files. According to the developer documentation https://docs.backdropcms.org/documentation/creating-sub-themes I need to add files
style sheets [all] [] = mystyle.cssand
scripts [] = myscript.jsto the .info file. And it works correctly for both of them if I use a standalone js file. But the js file I get as output from webpack is not. This works for Drupal 9, so I thought it might work for Backdrop too. Let me know if I'm wrong.