Skip to content

Commit

Permalink
Fix rewriting of LESS URLs for relative paths (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
JayCanuck authored and ryanjduffy committed Feb 12, 2019
1 parent fe371a4 commit 8d2d5af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions commands/transpile.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ function transpile(src, dest, plugins) {
function lessc(src, dest) {
return less
.render(fs.readFileSync(src, {encoding: 'utf8'}), {
rewriteUrls: 'off',
paths: [path.dirname(src)],
rewriteUrls: 'local',
filename: src,
paths: [],
plugins: lessPlugins
})
.then(result => fs.writeFileSync(dest.replace(/\.less$/, '.css'), result.css, {encoding: 'utf8'}));
Expand Down

0 comments on commit 8d2d5af

Please sign in to comment.