Skip to content

Commit

Permalink
Reorganize scss files
Browse files Browse the repository at this point in the history
  • Loading branch information
itsamoreh committed Jun 21, 2024
1 parent 63b08b0 commit c8c50a8
Show file tree
Hide file tree
Showing 23 changed files with 17 additions and 19 deletions.
2 changes: 1 addition & 1 deletion assets/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import './scss/index.scss';
import './scss/_index.scss';
import './js/index';
5 changes: 5 additions & 0 deletions assets/scss/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import './abstracts';
@import './base';
@import './patterns/';
@import './template-parts';
@import './templates';
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// 'base/' keeps files styling the base HTML elements.
@import './global';
@import './pagination';
@import './forms';
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions assets/scss/components/_components.scss

This file was deleted.

5 changes: 0 additions & 5 deletions assets/scss/index.scss

This file was deleted.

4 changes: 0 additions & 4 deletions assets/scss/layout/_layout.scss

This file was deleted.

5 changes: 0 additions & 5 deletions assets/scss/pages/_pages.scss

This file was deleted.

2 changes: 2 additions & 0 deletions assets/scss/patterns/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// 'patterns/' houses styles for custom patterns.
// @import './pattern-name';
3 changes: 3 additions & 0 deletions assets/scss/template-parts/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// 'template-parts/' houses styles for site editor template parts.
@import './header';
@import './footer';
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions assets/scss/templates/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// 'templates/' houses styles for site editor templates.
@import './archive';
@import './search';
@import './404';
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const coreBlockEntryPaths = glob
module.exports = {
...defaultConfig,
entry: {
style: './assets/scss/index.scss',
style: './assets/scss/_index.scss',
index: './assets/js/index.js',
variations: './assets/js/block-variations/index.js',
filters: './assets/js/block-filters/index.js',
Expand Down

0 comments on commit c8c50a8

Please sign in to comment.