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

If fails with relative paths #1

Open
fidoboy opened this issue Nov 15, 2014 · 0 comments
Open

If fails with relative paths #1

fidoboy opened this issue Nov 15, 2014 · 0 comments

Comments

@fidoboy
Copy link

fidoboy commented Nov 15, 2014

If for example the HTML file contains:
<script src="/components/myscript.js"></script>
the task fails to locate the file because it appends the current folder to that path. For example, my HTML is into /dist/views/myhtml.html then the task is trying to locate: /dist/views//components/myscript.js (notice the double slash after 'views') and it should use /components/myscript.js (relative to project root)

i'm using this in files:

files: [{ expand: true, src: ['dist/views/**/*.html','!dist/views/**/*.combo.html'], dest: '/dist/views/', ext: '.combo.html' }]

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