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

Could the replacement paths specify a different target? #48

Open
lopsided opened this issue May 15, 2015 · 2 comments
Open

Could the replacement paths specify a different target? #48

lopsided opened this issue May 15, 2015 · 2 comments

Comments

@lopsided
Copy link

Gassetic makes direct replacements in the replacement files. In my case none of the compiled assets are committed (or uncompiled vendors either), instead the CI server builds them again as part of the deploy. This means that my index.html contains script tags that are not referencing actual files in the repository, and are irrelevant anyway since they get replaced by the CI server's gassetic build.

Ideally I would have something like this:

replacementPaths:
    - { from: base.html.twig, to: compiled.html.twig }

So the base.html.twig acts as a template and stays pretty static, and I could git-ignore compiled.html.twig to make a tidier repo!

Does this make sense? Any thoughts?

@kbsali
Copy link

kbsali commented Jul 13, 2015

Yep, that's a nice idea! It's somewhat annoying to have to undo all the changes made by assetic before commiting "real" changes.

@romanschejbal
Copy link
Owner

Yeah that sounds sensible. I am pretty busy these days but I will look at this later - if none else will?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants