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

[email protected] not work with node@6 #7

Closed
jaredleechn opened this issue Aug 9, 2016 · 3 comments
Closed

[email protected] not work with node@6 #7

jaredleechn opened this issue Aug 9, 2016 · 3 comments
Assignees
Labels

Comments

@jaredleechn
Copy link
Member

目前就发现了这一种组合有问题,编译 css 文件不能

其它的:

[email protected] with node@5
[email protected] with node@6

都没问题

@wenshiqi0
Copy link

[email protected] lessc

 var pathToMap = path.dirname(sourceMapFileInline ? output : sourceMapOptions.sourceMapFullFilename),
     pathToInput = path.dirname(sourceMapOptions.sourceMapInputFilename);

[email protected] lessc

var pathToMap = path.dirname(sourceMapFileInline ? output : sourceMapOptions.sourceMapFullFilename || '.'),
    pathToInput = path.dirname(sourceMapOptions.sourceMapInputFilename || '.');

2.7的代码比2.6的代码多做了一次空值检测,我估计是node在path这一层做了更严格的检测改动,不接受一些空值所以导致直接报错了,2.7多加了一层检测,规避了这个问题。

@soda-x
Copy link
Contributor

soda-x commented Aug 9, 2016

对应的讨论在这个 issue 内

less/less.js#2881

@soda-x
Copy link
Contributor

soda-x commented Aug 9, 2016

https://github.com/ant-tool/component-init/blob/master/boilerplate/package.json#L47 已经是 2.7.1

@soda-x soda-x closed this as completed Aug 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants