Skip to content

Stylesheets and scripts registration

Latest
Compare
Choose a tag to compare
@hiwelo hiwelo released this 22 Jan 10:05
· 1 commit to master since this release

In this new version, you can now declare your theme's stylesheets and scripts through your manifest file.

For example, you can declare a new stylesheet like this:

styles:
    blog: assets/dist/css/styles.min.css

Or like this:

styles:
    blog:
        src: assets/dist/css/styles.min.css
        media: print

You can see the list of all available arguments in the WordPress Documentation.