我是React的新手,现在我在我的项目的React最近版本中使用SCSS。在我的SCSS文件中
display: flex;
flex-direction: column;
justify-content: space-between;
background: url(../../assets/img/comp-img/game-box-bg.png) no-repeat 100% 100%;
和myComponent.jsx使用已安装的node-sass软件包导入此SCSS文件。 问题是当我检查元素时,我在浏览器中看到此结果:
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAACQCAYAAAD6FB5mAAAABHNCSVQICAgIfAhkiAAAB3NJREFUeF7tnc+LHUUQx6swERUUomAkOShGiYcEDehBQQ/mkL/Z6x6yhz2sYA4bMOAKERJhA5tDBKMl39ATZp/z5k13VddMz6uBZcOmq3rm+5n+Vd3TzRTXIhXgRd5VpZsSkTeI6BIRvWTmfyplY+K2OTAi8mYS9/LI76H/gx2up8x8bKJeRSdNgRGRe0ot/iaiQ2Z+ofRT3bwZMCLyIRHdUSrymJkfKH24mLcE5gsi+lipyn1mfq704WLeEpgfiOhthSrnzHyosHc1bQKMiAAIwGiuX5j5D40DT9tWwLxPRN8ohTloodHvnrEVMGhb0MaUXi+Y+aDUeA67VsDcIKLPFAI1MXbpP9++gDlh5lMFWHfTVsBg/IJxTOl1xMxnpcZz2LUCBg0/OgClV4ApVW7MTkS0YJoZWLbWK1PFyJj5pxovTE2frVRlAabmW1DqWxtVjhJTqvwOO4M2Jhr/GmwCTA1VDXyKiHYcc8zMTw1uxc1FK42/NiTzKzM/clPVIKN9AdPMzGVr45hrRHRb8SJGdFkh3lZTEbGYj2lq9N9KVWYxg9lUO9MEGBQlEYk5/xrVkdaniFiskmlmermlEmPRzjTTO2sGTKrOfiQiLH/VXE2EZ1oDo40AAOgZMx9pyHrYtgZGO57pNF18qWkNDD6huGvwxp4TEeC8NPBVxUVTYFI7o51m7oR8wsw/V1HVwGmLYCx6Z510p8x8YqCjuYvmwBiXGrhb5JrmVsFYhGj6b/ni4mhNgkml5hYRXTesQxZVcloGY11qwPg3Zn5oCLvYVbNgUqnRzmwOCfeEiB7M2ZUWkUutg8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