We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently the way to support a CSS-only entrypoint is to pretend it is JS:
Asset_Loader\autoenqueue( get_stylesheet_directory() . '/build/asset-manifest.json', 'style.js', // Note: no JS file will exist. [ 'scripts' => [], 'handle' => 'mytheme-base-style', ] );
This is confusing and should not be necessary.
The text was updated successfully, but these errors were encountered:
As of #22, this should be possible now with
Asset_Loader\register_asset( $manifest_file_system_path, 'asset.css', // May not exist in DevServer context [ ... ] );
Needs documentation but so does everything else in this lib. Closing out this issue, for now!
Sorry, something went wrong.
No branches or pull requests
Currently the way to support a CSS-only entrypoint is to pretend it is JS:
This is confusing and should not be necessary.
The text was updated successfully, but these errors were encountered: