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.
Update: I tried to use Leaflet and Geofield with Geocoder, but can't get geocoding from other field working at all. But at no point the map breaks. It just stays empty.
Is there really,...
To me this clearly looks like some wrong use of the Leaflet library at some point.
But the problem is not the empty map (alone), which works fine and never caused me trouble. Something...
Clearing the cache was one of the things I tried. This included truncating the cache tables that don't get cleared by the flush all caches button, as well as sessions and tempstore tables. This...
So tried accessing the updates.backdropcms.org server again and tech support said:
Hello,
It looks like outside of the server that host isnt accessible currently --
jeremy_a@khsupport...
It was the ProtectHome setting in the apache service which was the problem.
I did this:
systemctl edit apache2.service
Then added this:
[Service]
ProtectHome=no...
Posted2 days 1 hour ago by Francis Greaves (themetman) 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.