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.
--use
accepts 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=value
anymore, use a config file. - Changed usage of the
--map
option; use--map
for external sourcemaps,--no-map
to disable all maps. Inline sourcemaps are default. - Removed
--log
flag; this behavior is now default. - Removed the
--local-plugins
flag; same result can be achieved withpostcss.config.js
. - Removed the global
watchCSS
handler, plugins that import/rely on other files should use adependency
message instead.
New Features
--ext
(-x
) option allows you to set the file extensions for your output files when using--dir
.--env
allows you to setNODE_ENV
in 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