Skip to content

Feature [--migrate]: Migrate from webpack 1 to 2 through webpack-cli #6

@pksjce

Description

@pksjce

TODOS

Migrations

  • loaders -> rules
  • pre/postLoaders -> rules with enforce: 'pre/post'
  • solve for -loaders suffix.
  • resolve.root -> resolve.modules
  • remove json-loader
  • add sourceMap: true to UglifyJsPlugin
  • change ExtractTextPlugin syntax
  • remove OccurendeOrderPlugin
  • add LoaderOptionsPlugin with minimize:true ,context and debug

NFR

  • Tests should pass
  • Add yarn support
  • Add node 4 support

Do you want to request a feature or report a bug?
This is a feature request

What is the current behavior?
There is no automated tool to help migrate from webpack 1 to webpack 2.

If the current behavior is a bug, please provide the steps to reproduce.
NA

What is the expected behavior?
The expected behavior is to have webpack-cli help make this migration automatically.

If this is a feature request, what is motivation or use case for changing the behavior?
It is not clear from first glance as to what it takes to migrate breaking features for webpack2. Providing an automated option would be the best case scenario

Please mention other relevant information such as the browser version, Node.js version, Operating System and programming language.

Node.js version > 0.12.17

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions