postcss-import

This plugin can consume local files, node modules or bower packages.
To resolve path of an @import rule, it can look into root directory (by default process.cwd()), node_modules, web_modules, bower_components or local modules.
You can also provide manually multiples paths where to look at.

Notes:

This plugin works great with postcss-url plugin,
which will allow you to adjust assets url() (or even inline them) after inlining imported files.

In order to optimize output, this plugin will only import a file once on a given scope (root, media query...).
Tests are made from the path & the content of imported files (using a hash table).
If this behavior is not what you want, look at skipDuplicates option

By default, similar files (based on the same content) are being skipped.
It's to optimize output and skip similar files like normalize.css for example.
If this behavior is not what you want, just set this option to false to
disable it.