webstorm 添加 autoprefixer 工具為CSS加首碼

來源:互聯網
上載者:User

標籤:short   post   blog   set   app   orm   顯示   配置   分享   

  1. webstrom IDE 的 setting (快速鍵 Ctrl + Alt  + S)
  2. Tool -- External tool (綠色 + 添加)

         

   3.填寫 必要的項目 後 apply 

   

   備忘:Name: 顯示的名稱 

      Programs: postcss.cmd 的全域安裝下的路徑

      Paramters: -u autoprefix -o 輸出檔案  輸入檔案 (上面表示在輸入輸出都在同一個檔案上並添加操作)

      Working directory: 在項目下即可

 

   4.添加快速鍵 Keymap中 找到 External tool 檔案目錄下 有自己添加的工具外掛程式 點autoprefixer 滑鼠右鍵 選 ‘Add KeyBorad shortcut’

    

    設定沒有給引用的鍵 (或組合)即可

    5.運行 外掛程式效果

    

 

    若出現沒有報錯:輸入有效檔案清單路徑 證明你的 Paramters 參數寫錯了!  正確: $FileDir$/$FileName$(路徑  / 檔案名稱),對這上面配置就可以了!

 

    前提要通過npm全域安裝 下面的兩個包

    (1) npm install autoprefixer  -g   

    (2) npm install pastcss-cli  -g

    大功告成!

 

webstorm 添加 autoprefixer 工具為CSS加首碼

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.