borodean / postcss-assets

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

Output assets to distribution dir #59

Open oojacoboo opened 7 years ago

oojacoboo commented 7 years ago

So, I'm trying to figure out how to output the assets processed by postcss-assets to another directory, the dist directory.

I'm assuming this isn't the purpose of this plugin and that I'll need to pipe the output to another plugin possibly. I'm currently using the static-render-webpack-plugin webpack plugin which handles most of this including, through the file-loader, required assets.

Am I correct in assuming that postcss-assets doesn't work in this fashion, and assuming not, can you please point me in the correct direction on how to chain another plugin that can take the path generated from this plugin to output the files in a dist dir? Thanks.

oojacoboo commented 7 years ago

You would know, the next search I make I'd happen on something. I think this is the ticket...

https://github.com/devex-web-frontend/postcss-assets-rebase

If so, it'd be great if you could include this information within your readme.