Error with latest minify version
Closed this issue · 1 comments
matteociasco commented
Hi everyone, when i try to run the following code from an .sh script:
for FILE in $(find $1 -name *.css)
do
if [[ $FILE != *.min.css ]] && [[ $FILE == *.css ]]; then
minify $FILE > ${FILE/.css/".min.css"}
fi
done
I get the following error:
Directory import '/usr/local/lib/node_modules/minify/' is not supported resolving ES modules imported from /usr/local/lib/node_modules/minify/bin/minify.js
The npm package is installed like this:
npm install -g minify
Enviroment
- node 14
- runs on bitbucket pipeline
coderaiser commented
It’s a duplicate of #86. Just re-install minify
, it’s already fixed.
Is it works for you?