postcss-assets icon indicating copy to clipboard operation
postcss-assets copied to clipboard

resolver.options.loadPaths.unshift is not a function

Open martenzander opened this issue 7 years ago • 2 comments

Trying to run postcss-assets I get the following error:

resolver.options.loadPaths.unshift is not a function

my config:

postcss-assets : { relative : 'public/assets/css', basePath: 'src/scss', loadPaths: 'public/assets/img' }

martenzander avatar Jul 18 '17 08:07 martenzander

loadPaths should be an array

try this: loadPaths: ['public/assets/img']

shenzhim avatar Aug 11 '17 08:08 shenzhim

@shenzhim I'm pretty sure globs were allowed at some stage of development.

Don't have much time finding the issue at the moment. Would appreciate a PR though.

borodean avatar Aug 18 '17 01:08 borodean