タグ付けされた質問 「less-compilation」

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 …
弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.