Skip to content

Commit 0748ede

Browse files
committed
Use NodeJS.jl for purge
1 parent 8716a29 commit 0748ede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/instantiate.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function optimize(; input="page", output="", purge=true, kw...)
108108
io = IOBuffer()
109109
run(pipeline(`$(NodeJS.npm_cmd()) root`, stdout=io))
110110
nodepath = String(take!(io))
111-
run(`$(strip(nodepath))/purgecss/bin/purgecss.js --css __site/css/bootstrap.min.css --content __site/index.html --output __site/css/bootstrap.min.css`)
111+
run(`$(NodeJS.nodejs_cmd()) $(strip(nodepath))/purgecss/bin/purgecss.js --css __site/css/bootstrap.min.css --content __site/index.html --output __site/css/bootstrap.min.css`)
112112
end
113113

114114
# if required, copy the content of `__site` to a subfolder so that

0 commit comments

Comments
 (0)