Questions tagged «grunt»


3
Magento 2如何与CSS grunt-autoprefixer一起使用
通过查看全新安装的Magento 2(v2.1.8),我从他们的Gruntfile.js和package.json文件中看到Magento正在使用grunt-autoprefixer 太好了,CSS自动前缀确实很有用。但是我看不到如何在Magento的Gruntfile中使用它,有人知道它是如何工作的吗? 此外,这在实际环境中的生产模式下将如何工作?Magento2不在生产模式下使用PHP LESS编译器,而Grunt仅用于进行开发。 Gruntfile.js /** * Production preparation task. */ prod: function (component) { var tasks = [ 'less', 'autoprefixer', 'cssmin', 'usebanner' ] package.json "devDependencies": { "glob": "^5.0.14", "grunt": "^0.4.5", "grunt-autoprefixer": "^2.0.0", 我跑了grunt autoprefixer,它似乎也不起作用。 $ grunt autoprefixer Running "autoprefixer:setup" (autoprefixer) task Autoprefixer's process() method is deprecated and will …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.