![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
grunt
sol999
唯有不辜负,方能归初心
-----了不起的匠人
展开
-
magento2:前端如何使用grunt 编译less
1.安装node2.安装grunt3.安装 grunt-cli4.在项目根目录下 把以下文件 替换为 对应文件package.json.sample 替换为 package.jsonGruntfile.js.sample 替换为 Gruntfile.jsgrunt-config.json.sample 替换为 grunt-config.json其他文件不需要改变,只需把grunt-config.js文件中的{ "themes": "dev/tools/grunt/configs/loc原创 2021-09-22 11:31:08 · 282 阅读 · 0 评论 -
magento2: Grunt报错: Destination [src path] not written because no source files were found
是因为没有将源文件的符号链接重新发布到 pub/static/frontend/ 目录。在跑grunt less:orange命令之前一定要先跑 grunt exec:orange,然后就ok了,这是我自己做项目时第一次配grunt遇到这个问题的解决方法,如果还有其他的办法或者这个不生效 欢迎留言交流哈,也可参照我之前写的 magento2:前端如何使用grunt 编译less...原创 2021-09-22 11:38:31 · 163 阅读 · 0 评论