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.
The original drupal module works, i already have sites using it.
Backdrop version doesnt work. If you check the code base, you will see why. It has also been 4 years since last commit...
The module is a port from the Drupal module of the same name and the name is not normally changed.
Looking at the Drupal module there is this issue:
https://www.drupal.org/project/...
Posted20 hours 51 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:
The README says:
This module enables to use tokens for field default values in simple field types like text or select list. That's a convenient way to pre-populate fields when...
Posted21 hours 9 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:
The problem seems to be related with Field Default Token module.
The coder put alot of comments in field_default_token_form_field_ui_field_edit_form_alter function saying the validation...
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.