xiaoming1992

CleanWebpackPlugin 按文件夹保留

  •  
  •   xiaoming1992 · May 3, 2019 · 3736 views
    This topic created in 2758 days ago, the information mentioned may be changed or developed.

    看CleanWebpackPlugin2.*,移除了exclude,只剩下cleanOnceBeforeBuildPatterns,似乎没办法保留文件夹啊,大佬们有什么办法么?

    1 replies  •  2019-05-03 09:25:37 +08:00
    xiaoming1992
    xiaoming1992
    OP
    May 3, 2019
    1
    艹,转个身自己想出来了
    ```
    cleanOnceBeforeBuildPatterns: ["index.html", "**/index*.js", "**/index*.css"],
    ```
    浪费了我几万 V 币
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4797 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 02:52 · PVG 10:52 · LAX 18:52 · JFK 21:52
    ♥ Do have faith in what you're doing.