How to exclude files from HTML5 builds?

Hi,

What key do I use to exclude files/dirs from an HTML5 build? I’ve tried:

-- -- Project section -- excludeFiles = { -- Exclude unnecessary files for each platform all = { "Icon.png", "Icon-\*dpi.png", "Images.xcassets", "server", }, android = { "LaunchScreen.storyboardc", }, html5 = { "lib" } },

and

-- -- Project section -- excludeFiles = { -- Exclude unnecessary files for each platform all = { "Icon.png", "Icon-\*dpi.png", "Images.xcassets", "server", }, android = { "LaunchScreen.storyboardc", }, web = { "lib" } },

But they both give a warning and don’t seem to make a difference on the output size.

WARNING: issue found in build.settings: WARNING: unrecognized key: settings.excludeFiles.html5[] (string)

Thanks in advance.

-dev

This time ‘web’ keyword should be used. Something similar to:

– Project section

excludeFiles =

{

web = { “Icon.png”, “Icon-??.png”, “Icon-???.png”, “LaunchScreen.storyboardc”, },

},

Hi,

For some reason that is not working for me. If I remove the directory manually and run an HTML5 build I can see the size difference is smaller on *.data, but when leaving the directory in the project folder and adding it to the “web” key the file size increases again.

-- -- Project section -- excludeFiles = { -- Exclude unnecessary files for each platform all = { "Icon.png", "Icon-\*dpi.png", "Images.xcassets", "server", }, android = { "LaunchScreen.storyboardc", }, web = { "lib" } },

-dev

Works for me. Just right now I’ve added ‘lib’ folder in an app and applied your build.settings, ‘lib’ folder was excluded from build.

Are you sure that ‘lib’ but not ‘.lib’ or something similar ?

Hi,

It’s really strange. Here is a video of the behavior. You can see when I remove the “lib” directory the size changes.

I’m on macOS High Sierra 10.13.4, Corona build 3273 if that matters.

https://www.youtube.com/watch?v=3wlvg3KJNvg

-dev

Hi,

I also get this warning:

WARNING: issue found in build.settings: WARNING: unrecognized key: settings.excludeFiles.web[] (string)

-dev

fixed

This time ‘web’ keyword should be used. Something similar to:

– Project section

excludeFiles =

{

web = { “Icon.png”, “Icon-??.png”, “Icon-???.png”, “LaunchScreen.storyboardc”, },

},

Hi,

For some reason that is not working for me. If I remove the directory manually and run an HTML5 build I can see the size difference is smaller on *.data, but when leaving the directory in the project folder and adding it to the “web” key the file size increases again.

-- -- Project section -- excludeFiles = { -- Exclude unnecessary files for each platform all = { "Icon.png", "Icon-\*dpi.png", "Images.xcassets", "server", }, android = { "LaunchScreen.storyboardc", }, web = { "lib" } },

-dev

Works for me. Just right now I’ve added ‘lib’ folder in an app and applied your build.settings, ‘lib’ folder was excluded from build.

Are you sure that ‘lib’ but not ‘.lib’ or something similar ?

Hi,

It’s really strange. Here is a video of the behavior. You can see when I remove the “lib” directory the size changes.

I’m on macOS High Sierra 10.13.4, Corona build 3273 if that matters.

https://www.youtube.com/watch?v=3wlvg3KJNvg

-dev

Hi,

I also get this warning:

WARNING: issue found in build.settings: WARNING: unrecognized key: settings.excludeFiles.web[] (string)

-dev

fixed