how to export model with material in blender using io_three addon

By default, threejs exporter for blender cant export material, cause these code in file io_three/constants.py

EXPORT_OPTIONS = {
# ...
    MATERIALS: False,
    FACE_MATERIALS: False,
    MAPS: False,
# ...
}

Change setting to True will solve this problem.

boilerplate