borodean / postcss-assets

An asset manager for PostCSS
MIT License
537 stars 32 forks source link

resolver.options.loadPaths.unshift is not a function #74

Open martenzander opened 7 years ago

martenzander commented 7 years ago

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' }

shenzhim commented 7 years ago

loadPaths should be an array

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

borodean commented 7 years ago

@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.