less - PhpStorm Less watcher 不能使用 clean-css 插件和 autoprefix
问题描述
我对 Less 有以下问题。我已将 Less 文件观察器配置为与 PhpStorm 一起使用,到目前为止一切正常。现在我添加了一些插件 clean-css 和 autoprefix ,突然一切都停止了。
我得到的错误:
SyntaxError: Cannot find module '/usr/local/lib/node_modules/less-plugin-autoprefix/lib/clean-css-processor' in /usr/local/lib/node_modules/less-plugin-clean-css/lib/index.js on line 1, column 29:
我的参数是:
$FileName$ ../../css/$FileNameWithoutExtension$.css --no-color $FileNameWithoutExtension$ --clean-css --autoprefix="last 5 versions"
clean-css 插件和 autoprefixs 只能单独工作。如果我将它们加在一起,我会得到错误。有任何想法吗?
解决方案
推荐阅读
- fluent-nhibernate - 从 DetachedCriteria 中选择子查询
- ios - 如果文件的速度大于 60,为什么 AKAppleSequencer 播放 MIDI 文件的速度更快?
- java - 无法将 avro 写为字节数组然后将其读回
- structuremap - 使用 StructureMap 配置的 MassTransit - ContainerScoped 不工作
- c++ - 在 Windows 上使用 va_copy 是否安全
- python - python:根据条件对时间序列数据进行分组或拆分
- spring - Transacted Route 和 Transactional Endpoints,事务提交顺序
- azure - 从负载平衡中排除 Azure AppService 实例
- javascript - 如何仅在 React Hooks 的组件列表中重新渲染嵌套文本值?
- c++ - 如何在 C++ 中存储数字 51588284.25?