-
-
Notifications
You must be signed in to change notification settings - Fork 107
Move assets to assets folder #682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
crftwrk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Before merging, I did the same for the child bootscore/bootscore-child#41. May have a quick look?
crftwrk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a bug that source map is not linked correct in compiled CSS:
/*# sourceMappingURL=/wp-content/themes/bootscore-child-dev-main/assets/css/main.map */
bootscore/inc/scss-compiler.php
Line 54 in e4e2e27
| 'sourceMapURL' => site_url('', 'relative') . '/' . substr(str_replace(ABSPATH, '', $css_file), 0, - 3) . 'map', |
'map' should be replaced by 'css.map'?
Good catch! Fixed it in abe3d9d |
crftwrk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, may have a quick view to the child's assets folder bootscore/bootscore-child#41?
This PR will move CSS, SCSS, JS, img and FontAwesome to a separate assets folder. This will help keep the folder structure cleaner.
As a small extra I've also renamed the .map file of the css to be main.css.map instead of main.map. This is in line with how it should be saved and is preferred by IDEs.
This PR closes #669