Skip to content
New issue

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

Require a root when initializing assets #136

Merged
merged 1 commit into from Feb 5, 2024
Merged

Conversation

timriley
Copy link
Member

Assets now requires a root, e.g.

assets = Hanami::Assets.new(config: Hanami::Assets::Config.new, root: "/some/path")

This makes it easier to use separate assets objects for different sets of compiled assets at different paths.

Along with this, make the default config more useful by providing a default value of "assets.json" for the manifest_path setting.

This makes it easier to use separate assets objects for different sets of compiled assets at different paths.
@timriley timriley self-assigned this Jan 22, 2024
@timriley timriley added this to the v2.1.0 milestone Jan 22, 2024
@timriley timriley merged commit 98dfc52 into main Feb 5, 2024
@timriley timriley deleted the require-assets-root branch February 5, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant