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 @argiepiano I have installed the fork of the module, now it works, but there are 2 observations:
I have to create transaction types if I don't do it when entering any option...
willof, I have submitted a PR that will allow you to install the module. Can you please check it?
You'll need to patch the module BEFORE trying to enable it.
https://github.com/...
Posted3 hours 24 min ago by Alejandro Cremaschi (argiepiano) on:
This is strange, and may be a bug. Have you tried using the token in other contexts, just to test? For example, installing Token Filter and using the token in the Body field of the node, to see...
Posted11 hours 3 min ago by Alejandro Cremaschi (argiepiano) on:
This is a known issue that will be solved in a few days. See the issue and PR here:
https://github.com/backdrop/backdrop-issues/issues/6839
It has already been merged into the 1.x...
Posted12 hours 33 min ago by Alejandro Cremaschi (argiepiano) 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.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.