将svg格式的图片放在了srciconshome里面请问以下路径是否正确?import as path from path const resolve = dir = pathresolve__dirname dir const postcssPxToViewport = requirepostcss-px-to-viewportmoduleexports = webpack ali
是的,路径是正确的。将svg格式的图片放在src/icons/home文件夹中,并通过webpack配置将其加载为svg-sprite。
AI 优化版
原文地址:https://www.cveoy.top/t/topic/i132 著作权归作者所有。请勿转载和采集!