Upgrading postcss-loader 1 to 2
Breaking1.3.3 → 2.1.6Breaking5New3Changed1Fixed22
BreakingUpgrade verdict
5 breaking changes.
In plain terms
- 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.
Must act 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).
What you must change
Breaking5
Removed support for node =< v4.0.0 (LTS).
Remove Plugin Presets options.pack.
options.packRemove webpack Plugin Hook (postcss-loader-before-processing).
postcss-loader-before-processingRemovectx.webpack (Loader API) => use ctx.file, ctx.env, ctx.options.
ctx.webpackRefactor options.config => use options.config.path/options.config.ctx (ctx.options).
options.configoptions.config.pathoptions.config.ctxctx.options