webpack/loader-utils

bug in 'stringifyRequest'

Closed this issue · 1 comments

Current behavior
request

'!!/path-to-project/node_modules/css-loader/index.js
!/path-to-project/node_modules/less-loader/index.js?{"modifyVars":{"@icon-url":"\'../../../src/fonts/iconfont\'"}}
!/path-to-project/node_modules/any/lib/index.less'

loaderContext.context

'/path-to-project/src'

output

'!!./../../../css-loader/index.js
!./../../../less-loader/index.js?{"modifyVars":{"@icon-url":"\'../src/assets/fonts/iconfont\'"}}
!./index.less'

@icon-url is changed

Expected behavior

'!!./../../../css-loader/index.js
!./../../../less-loader/index.js?{"modifyVars":{"@icon-url":"\'../../../src/assets/fonts/iconfont\'"}}
!./index.less'

webpack 1.14.0
Node.js 7.4.0
mac os 10.12.3

I have send a PR

jhnns commented

Shipped with 0.2.17