Closed TimHaslam closed 8 years ago
I have been experiencing the same issue, where styles were not coming through during the bundling process.
I've dug through the source code and removed the line $path = ltrim($path, '/');
from classes/dpsfa-bundlr.php
on line 3438, which resolved my issue, it wasn't able to generate the path to my CSS files correctly, and as such was excluding them from the bundle.
I'm not sure if this is a realistic solution, or if it might cause a problem elsewhere, however I did note that the same line wasn't in place when the bundle process is checking for images (see line 3402).
We just released an update 2.0.10 with an improvement to the packaging of the article. We updated the way the template. If you look inside the article.php file you'll see we're looking for full paths (or relative paths to the server now). This is part of a larger goal to allow any template (or theme) to be used for creating an article. Relative paths are no longer relative to the article. You can manually specify relative paths in the filter (dpsfa_bundle_article). It's been committed to github but will be available via wordpress's plugin portal within the hour.
After updating to 2.0.9 my styles in the template-article.css file are no longer being called in. Article comes through with default styling. I also attached my settings in the DPS WP admin to show that the template is right.
article.php file:
and template-article.css: