Skip to content

Upgrading extract-text-webpack-plugin 1 to 2

Breaking1.0.1 → 2.1.2Breaking1Deprecated1New3Fixed11

BreakingUpgrade verdict

1 breaking change.

  • The extract function now gives back a list of loaders rather than one loader, so code that expected a single value needs updating.
  • The plugin now prefers the option names use and fallback. The old names loader and fallbackLoader still work but print warnings so you remember to rename them.
2 items need code or config changes

Requires Node.js >=4.3.0 < 5.0.0 || >= 5.10 from 2.0.0-rc.0 (none stated before).

Adds schema-utils ^0.3.0.

Installs 16 packages in all (was 9).

Breaking1
Changes extract to return an array of loader objects instead of a single loader.
extract
Deprecated1
Introduces new plugin syntax using use and fallback; old loader and fallbackLoader names still work but warn.
ExtractTextPlugin.extractusefallbackloaderfallbackLoader