Following on from the above answer, you may be able to use require() if you prefer your original style of importing the assets. This seems like a React syntactical sort of issue.