-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
assets path malfunction #44
Comments
@ain Thanks for the issue! If you're reporting a bug, please be sure to include:
|
You're missing a slash in your template after |
@jonschlinkert I'm calling to reopen this ticket. As described, the configuration had the slash: assemble: {
options: {
flatten: true,
layoutext: '.hbs',
assets: './app/'
}
} What it gives me is: <script src="..scripts/vendor.js"></script> Also, if I move slash from the config to the template, it gives me <script src="../scripts/vendor.js"></script> but it should be <script src="./scripts/vendor.js"></script> So the assets path calculation is certainly invalid here. |
I was able to resolve the issue by duplicating the assets path! assets: '<%= config.app %>/<%= config.app %>' This pretty much reproduces the issue. I'm reopening the ticket. |
We can look into this, but it seems more likely that something is wrong in your config or templates, otherwise we would have gotten other issues about this by now. Or maybe there is a bug with some combination of things that isn't common? Can you provide the minimum necessary setup for us to reproduce the bug? |
Steps to reproduce:
Add CSS file to
app/styles/main.css
Create
index.hbs
with:Create Gruntfile with path of
assets
anddest
set toapp/
Compile
What happens: index.html comes across with
What should happen: valid relative path, e.g.
styles/main.css
or./styles/main.css
.The text was updated successfully, but these errors were encountered: