webpack 的 loader 順序是什麼? - What is the loader order for webpack?

問題:

When I have a loader configuration with multiple tests matching a file, I would expect only the first matching loader to be used but that doesn't seem to be the case.當我有一個加載器配置與多個測試匹配一個文件時,我希望只使用第一個匹配的加載器,但情況似乎並非如此。

I tried reading the source but even when I found the bit that I think implements the loading I can't understand how it behaves.我嘗試閱讀 源代碼,但即使發現我認爲實現加載的位,我也無法理解它的行爲方式。

The documentation doesn't mention how that situation should behave either.文檔也沒有提到這種情況應該如何表現。


解決方案:

參考: https://stackoom.com/en/question/2BFcX
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章