I'm trying to run a lessc
PowerShell commandline in my package.json
.
So in my scripts section I have something like that:
Get-ChildItem *.less -Recurse | ForEach-Object {lessc $_.FullName > $_.BaseName.css}
but it's giving me the following error:
'Get-ChildItem' is not recognized as an internal or external command
while this is executing normally in PowerShell
Get-ChildItem *.less -Recurse | ForEach-Object {echo $_.Name}
A plain lessc
command also works as expected.
Any ideas?
Also check this question that have another solution for this.