Skip to content

chapter 4 / webpack.config.js in newer versions  #10

Open
@MustafaDavari

Description

@MustafaDavari

When newer versions of packages are installed instead of older ones in the package.json file, It throws compile errors related to configuration.
for Example in webpack.config.js
-1- new webpack.NoErrorsPlugin ( ) which should be changed to new webpack.NoEmitOnErrorsPlugin( )
-2- resolve.extensions
it does not accept empty String

resolve: {
 extensions: [ '.js', '.jsx']
},

-3- module.loaders should be changed to module.rules i guess
-4- in loaders section it is no longer allowed to omit -loader so
loaders: ['react-hot-loader/webpack', 'babel-loader']
However after these changes there seems to be some compile errors which again is related to the configuration.

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