我想从npm
运行此命令./node_modules/uglify-js/bin/uglifyjs dist/bundles/npm-module-seed.umd.js --screw-ie8 --compress --mangle --comments --output dist/bundles/npm-module-seed.umd.min.js
我得到.' is not recognized as an internal or external command,
省略./
会:node_modules' is not recognized as an internal or external command,
有人可以帮帮我吗?
答案 0 :(得分:2)
相同的命令应该在没有提供uglifyjs的完整路径的情况下工作。而是在项目的根目录中使用package exposed命令:
uglifyjs dist/bundles/npm-module-seed.umd.js --screw-ie8 --compress --mangle --comments --output dist/bundles/npm-module-seed.umd.min.js