javascript - webpack packaging questions
迷茫
迷茫 2017-05-16 13:44:49
0
2
516

Directory structure and webpack.config file, as follows:

After executing the command webpack webpack.config.js, the error is reported as follows:

Question
I did not write in the configuration file to package the files in node_modules, but it seems that the contents of the webpack module in node_modules are also packaged. Is this causing the can't not resolve 'fs' error?

Have any friends also encountered this problem? Please ask a god to answer my questions!
My version is as follows:

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
仅有的幸福

Your question is not clear. I usually write the ignore directory manually, exclude: /node_modules/

给我你的怀抱

You don’t need to process it in node_modules. It is recommended to exclude it in babel-loader

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!