Skip to content

Webpack loader changes.  #7

@ghost

Description

Just FYI,

In your webpack.config.js file loaders should look something like this.

module: {
        loaders: [
            {
                test: /\.jsx?$/,
                exclude: /node_modules/,
                loaders: [
                    'react-hot-loader/webpack',
                    'babel-loader?presets[]=react,presets[]=es2015'
                ]
            }
        ]
    }

Webpack requires that you put -loader after each loader and also for the react-hot-loader we need to now add /webpack. :). Hope this helps someone else following the Youtube tutorial. Thanks so much for creating the tutorial.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions