Postcss global import.
npm install --save postcss-global-import
@global-import './some-file.css'
/* Some Css */
In case of sync enabled this plugin will be work synchronously. It's useful in case with usage
css-modules-require-hook
hook, which doesn't support async postcss plugins.
const globalImport = require('postcss-global-import');
module.exports = {
module: {
loaders: [
{
test: /\.css$/,
loader: "style-loader!css-loader!postcss-loader"
}
]
},
postcss: [
globalImport()
]
}