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

Unable to separate building assets with reading existing assets #147

Open
robrwo opened this issue Sep 8, 2021 · 0 comments
Open

Unable to separate building assets with reading existing assets #147

robrwo opened this issue Sep 8, 2021 · 0 comments

Comments

@robrwo
Copy link

robrwo commented Sep 8, 2021

  • Mojolicious::Plugin::AssetPack version: 2.13
  • Perl version: N/A
  • Operating system: N/A

Steps to reproduce the behavior

The assets are rebuilt every time process runs (which is usually in startup).

However, calls to the processed method to fetch asset information will implicitly call process to rebuild assets.

There are common use cases where we want the build the assets in a development environment, commit them to a code repository and then use those assets on a server, without the server needing to try and re-build them:

  • Tools like sass cannot be installed or upgraded on a production server (for various reasons...)
  • Server has restricted network access and cannot fetch remote assets
  • A remote asset is damaged or tampered with, and fetching the damaged update when restarting a server will replicate the damage

Expected behavior

There should be a separate method for using the assets as-built without refreshing them. Or perhaps an option to pass to the process method that tells it not to rebuild.

Actual behavior

When the service uses restarts, it attempts to rebuild assets, but it requires sass.

We have to work around this by building css from sass separely.

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

No branches or pull requests

1 participant