javascript - I don't know what the bundlejs file code packaged by webpack means.
世界只因有你2017-06-30 09:52:37
0
2
917
What are these codes generated by bundle.js? The browser reports an error when running html. http://www.jianshu.com/p/42e1... I followed the instructions here
Webpack decouples, compresses and packages the dependency files of the project to generate your bundle.js. No one will care about the content of this bundle.js. In addition, please pay attention to the version of the dependent library used in each blog. Version upgrades will cause changes in the API interface. It's very possible, and you didn't make it clear what error you reported. You just posted a link when asking a question. It's normal for it to be rejected.
As mentioned above, you'd better edit your question again. I suggest you combine webpack's documentation and compare it with each tutorial. Based on your directory structure, I speculate on how to write webpack.config.js. I am also a beginner. If there are any mistakes, please correct me. Assume you develop the directory structure
A few links that helped me a lot when getting started webpack Chinese documentation (2.2) webpack official documentation Webpack's best practice for "multi-page development" Webpack common static resource processing<- The main reference is the loader/plug-in Parameter description. Webpack pitfalls (2) - image path and packaging
Webpack decouples, compresses and packages the dependency files of the project to generate your bundle.js. No one will care about the content of this bundle.js. In addition, please pay attention to the version of the dependent library used in each blog. Version upgrades will cause changes in the API interface. It's very possible, and you didn't make it clear what error you reported. You just posted a link when asking a question. It's normal for it to be rejected.
As mentioned above, you'd better edit your question again.
I suggest you combine webpack's documentation and compare it with each tutorial.
Based on your directory structure, I speculate on how to write webpack.config.js. I am also a beginner. If there are any mistakes, please correct me.
Assume you develop the directory structure
A few links that helped me a lot when getting started
webpack Chinese documentation (2.2)
webpack official documentation
Webpack's best practice for "multi-page development"
Webpack common static resource processing<- The main reference is the loader/plug-in Parameter description.
Webpack pitfalls (2) - image path and packaging