When building a WordPress theme with SCSS I like to split up my code into a series of folders and partials, following a logical structure. A useful feature of Gulp WP Toolkit is the ability to easily load all of the SCSS partials within a folder.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
But using Gulp WP Toolkit, it can be rewritten as:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you need to load a specific file first, then you can do so by adding an @import statement before the wildcard @import, like this:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters