Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@qfox
Copy link
Contributor

@qfox qfox commented Feb 17, 2016

This change needed to allow file-provider tech work with absolute paths.

I'm not sure should it be like this or via path.resolve. Personally I prefer the last one.

@blond
Copy link
Member

blond commented Feb 18, 2016

А зачем это нужно?

@blond blond added ready and removed review labels Feb 18, 2016
@qfox
Copy link
Contributor Author

qfox commented Feb 18, 2016

This is for loading any files via file-provider tech, not only in bundles.

E.g.:

addTechs([
  [require('enb/techs/file-provider'), { target: require.resolve('bem-xjst') }],
  [fileMerge, { sources: require.resolve('bem-xjst') }]
])

Is it works like that?

@qfox qfox force-pushed the hotfix/node-resolve-path branch from 4e7f76a to efe7b34 Compare February 20, 2016 14:45
@qfox qfox force-pushed the hotfix/node-resolve-path branch from efe7b34 to 06c2604 Compare February 20, 2016 15:55
blond added a commit that referenced this pull request Feb 20, 2016
Fix absolute paths resolving in Node.resolvePath
@blond blond merged commit 4bbcc89 into enb:master Feb 20, 2016
@blond blond removed the review label Feb 20, 2016
@qfox qfox deleted the hotfix/node-resolve-path branch February 20, 2016 16:07
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.

2 participants