This package has been deprecated

Author message:

this package has been deprecated; use postcss-global-import instead

postcss-global-import-sync

1.0.1 • Public • Published

Postcss global import.

npm package

Installation

npm install --save postcss-global-import

Example

@global-import './some-file.css'
/* Some Css */

Options

sync

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.

Webpack config example

const globalImport = require('postcss-global-import');

module.exports = {
  module: {
      loaders: [
          {
              test:   /\.css$/,
              loader: "style-loader!css-loader!postcss-loader"
          }
      ]
  },
  postcss: [
    globalImport()
  ]
}

Readme

Keywords

Package Sidebar

Install

npm i postcss-global-import-sync

Weekly Downloads

2

Version

1.0.1

License

ISC

Last publish

Collaborators

  • anru