Skip to content

Conversation

@justinkruit
Copy link
Member

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

@justinkruit justinkruit requested a review from crftwrk February 16, 2024 14:06
@crftwrk crftwrk added the documentation Improvements or additions to documentation label Feb 16, 2024
Copy link
Member

@crftwrk crftwrk left a 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?

Copy link
Member

@crftwrk crftwrk left a 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 */

'sourceMapURL' => site_url('', 'relative') . '/' . substr(str_replace(ABSPATH, '', $css_file), 0, - 3) . 'map',

'map' should be replaced by 'css.map'?

@justinkruit
Copy link
Member Author

Found a bug that source map is not linked correct in compiled CSS:

Good catch! Fixed it in abe3d9d

@justinkruit justinkruit requested a review from crftwrk February 16, 2024 17:25
Copy link
Member

@crftwrk crftwrk left a 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?

@crftwrk crftwrk merged commit ced82c1 into main Feb 16, 2024
@crftwrk crftwrk deleted the pr-assets-folder branch February 16, 2024 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking documentation Improvements or additions to documentation

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

Create assets folder

3 participants