Releases: postcss/postcss-cli
Releases · postcss/postcss-cli
BROKEN: v3.1.0
This release is broken and deprecated, use v3.1.1 instead.
- Improved incremental rebuilds for better performance in watch mode.
- Switched to
read-cachefor file reading for better performance. - Set a dummy filename when reading from stdin to help plugins like autoprefixer find config files.
- Updated
fs-promisedependency.
v3.0.0
Changes since 3.0.0-beta
Breaking Changes
- Don't exit on
CssSyntaxErrorin watch mode. v2 behaved this way, but v3.0.0-beta didn't. - Error out if
fromortooptions are set in the config file. Use command line arguments instead.
New Features
- Add
--polloption. v2 had this, however, this new implementation removes the capability to set the interval, which was supported in v2.
Bugfixes
- Set
fromoption for correct sourcemaps - Fix
--watch's glob handling - Fix error handling
Changes since v2.6.0
Breaking Changes
- Uses https://github.com/michael-ciniawsky/postcss-load-config for config files. Dropped support for the v2 config file format.
- Can't set input files in config file; pass input files on the command line instead.
--useaccepts a list of plugins. This may cause issues if you have your list of css files at the end of your command.- Can't pass options to plugins via
--plugin.key=valueanymore, use a config file. - Changed usage of the
--mapoption; use--mapfor external sourcemaps,--no-mapto disable all maps. Inline sourcemaps are default. - Removed
--logflag; this behavior is now default. - Removed the
--local-pluginsflag; same result can be achieved withpostcss.config.js. - Removed the global
watchCSShandler, plugins that import/rely on other files should use adependencymessage instead. - Changed behavior of the
--polloption; no longer accepts an integerinterval.
New Features
--ext(-x) option allows you to set the file extensions for your output files when using--dir.--envallows you to setNODE_ENVin a cross-platform manner.
Migration guide for upgrading from v2: https://github.com/postcss/postcss-cli/wiki/Migrating-from-v2-to-v3
v3.0.0-beta
Breaking Changes
- Uses https://github.com/michael-ciniawsky/postcss-load-config for config files. Dropped support for the v2 config file format.
- Can't set input files in config file; pass input files on the command line instead.
--useaccepts a list of plugins. This may cause issues if you have your list of css files at the end of your command.- Can't pass options to plugins via
--plugin.key=valueanymore, use a config file. - Changed usage of the
--mapoption; use--mapfor external sourcemaps,--no-mapto disable all maps. Inline sourcemaps are default. - Removed
--logflag; this behavior is now default. - Removed the
--local-pluginsflag; same result can be achieved withpostcss.config.js. - Removed the global
watchCSShandler, plugins that import/rely on other files should use adependencymessage instead.
New Features
--ext(-x) option allows you to set the file extensions for your output files when using--dir.--envallows you to setNODE_ENVin a cross-platform manner.
Please test this beta release and report any bugs you find.
Migration guide: https://github.com/postcss/postcss-cli/wiki/Migrating-from-v2-to-v3