postcss-import

PostCSS plugin to inline at-import rules content

MIT License

Downloads
51.1M
Stars
1.4K
Committers
36

Bot releases are hidden (Show)

postcss-import - 14.0.0 / 2020-12-14 Latest Release

Published by RyanZim almost 4 years ago

This release should not have breaking changes for the vast majority of users; only those with @charset statements in their CSS may be affected.

  • BREAKING: Error if multiple incompatible @charset statements (#447)
  • BREAKING: Warn if @charset statements are not at the top of files (#447)
  • Fix handing of @charset (#436, #447)
postcss-import - 13.0.0 / 2020-10-20

Published by RyanZim almost 4 years ago

  • BREAKING: Require Node 10+ (#429)
  • BREAKING: Upgrade to postcss v8 and require it as a peerDependency (#427, #432)
  • Update dependencies
postcss-import - 12.0.0

Published by RyanZim about 6 years ago

postcss-import - 11.1.0

Published by RyanZim over 6 years ago

  • Added: filter option
postcss-import - 11.0.0

Published by RyanZim about 7 years ago

  • Changed: A syntax error in an imported file now throws an error instead of just warning (#264)
  • Changed: Symlink handling to be consistent with Node.js require (#300)
postcss-import - 10.0.0

Published by RyanZim over 7 years ago

  • Removed: Support for Node.js versions less than 4.5.x (#283)
  • Changed: Upgraded to Postcss v6 (#283)
  • Removed: jspm support (#283)
  • Removed: deprecated addDependencyTo option
  • Removed: onImport option
  • Changed: Doesn't depend on promise-each (#281)
postcss-import - 9.1.0

Published by RyanZim almost 8 years ago

  • Added: addModulesDirectories option (#256)
postcss-import - 9.0.0

Published by RyanZim almost 8 years ago

  • Removed: transform option
    (#250)
  • Removed: pkg-resolve is no longer a dependency; this should fix some issues
    with webpack. jspm users must manually install pkg-resolve if they want to
    load jspm modules (see https://github.com/postcss/postcss-import#jspm-usage
    for more info) (#243)
  • Changed: If a file is not found, it will now throw an error instead of just
    raising a warning (#247)
  • Changed: If a custom resolver does not return an absolute path, the default
    resolver will be applied to the returned path.
    (#249)
  • Changed: postcss-import will try to guess the correct parser for imported
    files, based on the file extension.
    (#245)
  • Changed: Deprecated addDependencyTo option, it is not needed if using
    postcss-loader >= v1.0.0
    (#251)
postcss-import - 8.2.0

Published by RyanZim almost 8 years ago

  • Fixed: Warn about all @imports after other CSS declarations
    (#240)
  • Added: dependency message
    (#241)
postcss-import - 8.1.3

Published by MoOx almost 8 years ago

  • Fixed: Nested import ordering
    (#236 - @RyanZim)
postcss-import - 8.1.2

Published by MoOx over 8 years ago

  • Fixed: prevent JSPM to throw unrecoverable error
    (#205)
postcss-import - 8.1.1

Published by MoOx over 8 years ago

  • Fixed: JSPM support
    (#194)
postcss-import - 8.1.0

Published by MoOx over 8 years ago

  • Added: JSPM browser field
    (#186)
postcss-import - 8.0.2

Published by MoOx over 8 years ago

  • Fixed: Comments between imports statements are ignored
    (#164)
postcss-import - 8.0.1

Published by MoOx over 8 years ago

  • Fixed: missing "lib" folder
    (#161)
postcss-import - 8.0.0

Published by MoOx over 8 years ago

All imports statements must be at the top of your file now, per CSS specification.
You should use postcss-reporter to see the warnings raised.

  • Removed: async mode/option (now async by default)
    (#107)
  • Removed: "bower_components" not supported by default anymore,
    use "path" option to add it back
  • Removed: encoding option. Encoding can be specified in custom load option
postcssImport({
  load: function(filename) {
    return fs.readFileSync(filename, "utf-8")
  }
})

(#144)

  • Removed: glob support
    (#146)

Globs can be implemented with custom resolve option

postcssImport({
  resolve: function(id, base) {
    return glob.sync(path.join(base, id))
  }
})

(#116)

  • Changed: custom resolve has more responsibility for paths resolving.
    See resolve option
    for more information about this change
    (#116)
  • Changed: support promise in transform option and undefined result will be
    skipped
    (#147)
  • Changed: options.plugins are applied to unprocessed ast before imports
    detecting
    (157)
  • Added: custom resolve function can return array of paths
    (#120)
  • Added: custom syntax in imported files support
    (#130)
  • Added: support custom load option
    (#144)
  • Added: detect css extension in package.json main field
    (153)

Note:
_If you miss options/default behavior (glob etc), a new plugin will handle all
those things.
Please follow issue #145
_

postcss-import - 7.1.3

Published by MoOx almost 9 years ago

  • Fixed: ensure node 0.12 compatibility, round 2
    (#93)
postcss-import - 7.1.2

Published by MoOx almost 9 years ago

  • Fixed: performance issue because of cloned options
    (#90)
postcss-import - 7.1.1

Published by MoOx almost 9 years ago

  • Added: ensure node 0.12 compatibility
postcss-import - 7.1.0

Published by MoOx almost 9 years ago

  • Added: option addDependencyTo to make the integration with webpack more
    elegant
    (ref postcss-loader#31)