Cordova Build - ignore files

前端 未结 6 686
孤街浪徒
孤街浪徒 2021-02-08 10:58

When compiling a cordova application every single file in my /www folder gets copied to the assets/www folder(android) but I\'d like to customize what

6条回答
  •  北恋
    北恋 (楼主)
    2021-02-08 11:38

    I highly recommend cordova-plugin-exclude-files. You simply specify files to exclude as pattern attributes of exclude-files tags in your config.xml file.

    For example, to exclude all .scss files:

    And to exclude all files with the string "ios-only" on the Android platform only:

提交回复
热议问题