Skip to content

Commit

Permalink
Added resolve for less/css
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Dec 15, 2024
1 parent 4d5d6d7 commit fcb4a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NodeRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Module = require("module");
// tslint:disable-next-line: ban-types
const oldRequire: Function = Module.prototype.require;
const r = function(name) {
if (/\.(svg|jpg|gif|png)$/i.test(name)) {
if (/\.(svg|jpg|gif|png|less|css)$/i.test(name)) {
return name;
}
return oldRequire.call(this, name);
Expand Down

0 comments on commit fcb4a29

Please sign in to comment.