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

Add precompile_assets option to disable assets compilation #631

Merged
merged 1 commit into from
Feb 5, 2023

Conversation

marcoroth
Copy link
Member

@marcoroth marcoroth commented Feb 5, 2023

Type of PR

Enhancement

Description

This pull request ports over the changes introduced in stimulusreflex/cable_ready#244

This allows developers to disable the assets pre-compilation step, which previously happened automatically if the gem was included and sprockets was installed in the app.

If the project is using esbuild/webpack/vite it's very likely that there's no need to precompile the StimulusReflex assets in your app.

Why should this be added

So that developers can turn off the pre-compilation step if they don't ship the StimulusReflex assets via the Asset pipeline.

Checklist

  • My code follows the style guidelines of this project
  • Checks (StandardRB & Prettier-Standard) are passing
  • This is not a documentation update

@marcoroth marcoroth merged commit 0e7db72 into stimulusreflex:master Feb 5, 2023
@marcoroth marcoroth deleted the precompile-assets branch February 5, 2023 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant