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

Typescript use absolute path #796

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

artem-frolov
Copy link

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
License MIT

Typescript uses <reference path="" /> to resolve dependencies on another files. This can cause problems with assetic, because assets are took out of their original place and they are put in a temporary directory.

This pull request is based on #659 which has no new activity for more than one year.

This change allows a new setting to use absolute path instead of relative one. When asset is loaded, it's checked for <reference path=""> and all paths are replaced with absolute paths.

/// <reference path="absolute.ts" />

is translated to

/// <reference path="/project/absolute.ts" />

@mhlavac
Copy link

mhlavac commented Apr 7, 2016

@artem-frolov thanks for your work. It looks good

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.

3 participants