Skip to content

Commit

Permalink
fix: pass filename to less (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheltondong authored and egoist committed Feb 22, 2018
1 parent ecab54c commit c8ed3e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/less-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export default {
const less = localRequire('less')

const { css, map } = await pify(less.render.bind(less))(code, {
sourceMap: this.sourceMap && {}
sourceMap: this.sourceMap && {},
filename: this.id
})

return {
Expand Down

0 comments on commit c8ed3e2

Please sign in to comment.