有没有办法在scss中使用webpack defineplugin函数

is there a way to use webpack defineplugin function in scss

我想在 scss 中使用定义的插件函数 image_path 我可以使用它吗 webpack

new webpack.DefinePlugin({
                image_path: function(path) {
                    return '/images' + path;
                }
    })

css文件是这个

 .range {
                        &::-webkit-slider-thumb {
                            background-image: url($divum_image_path('practiceDifficultyRange.svg'));
                            background-size: 100rem;
                        }
                        &::-moz-range-thumb {
                            background: url($divum_image_path('practiceDifficultyRange.svg')) no-repeat;
                        }
                    }
new webpack.DefinePlugin({
                image_path: function(path) {
                    return '/images' + path;
                }
    })

webpack中无法使用图片路径变量