我在本地安装(docker)magento时遇到问题。
我试图进行一些CSS更改,但不幸的是grunt.js无法编译我的文件。启动“grunt watch”命令后,控制台将显示“Waiting ...”,但不会更新任何文件。请帮忙 :)
最佳答案
@btek
是的,我添加了主题。
Grunt exec命令向我返回警告:
grunt exec:xx --force
Running "exec:xx" (exec) task
Running "clean:xx" (clean) task
>> 7 paths cleaned.
Done.
Execution Time (2018-04-19 08:12:01 UTC)
loading tasks 98ms ▇▇▇▇▇▇▇▇▇▇▇▇▇ 37%
loading grunt-contrib-clean 76ms ▇▇▇▇▇▇▇▇▇▇ 29%
clean:xx 90ms ▇▇▇▇▇▇▇▇▇▇▇▇ 34%
Total 265ms
Magento supports 7.0.2, 7.0.4, and 7.0.6 or later. Please read http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html>> Exited with code: 1.
>> Error executing child process: Error: Process exited with code 1.
Warning: Task "exec:xx" failed. Used --force, continuing.
Done, but with warnings.
Execution Time (2018-04-19 08:11:57 UTC)
loading tasks 758ms ▇▇▇▇▇▇▇▇ 17%
loading grunt-exec 47ms ▇ 1%
exec:xx 3.6s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 82%
Total 4.4s
和更少的咕gr声:
grunt less:xx
Running "less:xx" (less) task
>> Destination pub/static/frontend/xx/css/styles-m.css not written because no source files were found.
>> Destination pub/static/frontend/xx/css/styles-l.css not written because no source files were found.
Done.
Execution Time (2018-04-19 08:45:14 UTC)
loading tasks 81ms ▇▇▇ 7%
loading grunt-contrib-less 1.1s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 92%
less:xx 12ms ▇ 1%
Total 1.2s
watch 模式下的 Grunt 不会更新我的CSS文件:(
关于docker - magento中的 Grunt 不编译文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49900270/