Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MustafaDavari opened this issue Jul 25, 2018 · 0 comments
Open

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

MustafaDavari opened this issue Jul 25, 2018 · 0 comments

Comments

@MustafaDavari
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant