Skip to content

Upgrading postcss-loader 1 to 2

Breaking1.3.3 → 2.1.6Breaking5New3Changed1Fixed22

BreakingUpgrade verdict

5 breaking changes.

  • Removed support for node =< v4.0.0 (LTS).
  • Remove Plugin Presets options.pack.
  • Remove webpack Plugin Hook (postcss-loader-before-processing).
  • Removectx.webpack (Loader API) => use ctx.file, ctx.env, ctx.options.
Top 3 of 5 that need code or config changes

Node.js requirement changed in 2.0.6: >=0.12 → >= 4.

Adds schema-utils ^0.4.0.

Drops object-assign.

Installs 40 packages in all (was 32).

Breaking5
Removed support for node =< v4.0.0 (LTS).
Remove Plugin Presets options.pack.
options.pack
Remove webpack Plugin Hook (postcss-loader-before-processing).
postcss-loader-before-processing
Removectx.webpack (Loader API) => use ctx.file, ctx.env, ctx.options.
ctx.webpack
Refactor options.config => use options.config.path/options.config.ctx (ctx.options).
options.configoptions.config.pathoptions.config.ctxctx.options