Skip to content

use module.rules instead of module.loaders for webpack2 #143

@marcofugaro

Description

@marcofugaro
Contributor

modules.loaders was renamed in modules.rules in webpack 2, here are the docs

Would be easier when adding custom loaders, to merge the with the default loaders.

Here is the line I'm referring to https://github.com/andywer/webpack-blocks/blob/master/packages/webpack2/index.js#L78

Also the example in the README needs to be updated.

Activity

andywer

andywer commented on Apr 19, 2017

@andywer
Owner

It's on its way. 1.0 release will be webpack 2 only and use module.rules 😉
See #134.

Duplicate of #111

andywer

andywer commented on Apr 19, 2017

@andywer
Owner

Sorry for the slow progress on 1.0, though!

marcofugaro

marcofugaro commented on Apr 19, 2017

@marcofugaro
ContributorAuthor

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @andywer@marcofugaro

        Issue actions

          use module.rules instead of module.loaders for webpack2 · Issue #143 · andywer/webpack-blocks