How to update Bootstrap v3.3.7 to v4.0.0 beta2 in Asp.net core 2.0 mvc project?

浪尽此生 提交于 2019-12-10 13:09:58

问题


I am wondering what is the process to update Bootstrap v3.3.7 to v.4.0.0 beta-2 in Asp.net core 2.0 mvc project.


回答1:


follow steps for bootstrap 4.0.0 beta.3 version. Most probably for other versions also will work.

  1. Open Node.js Console
  2. Cd Path to your project where package.json is located
  3. run command npm install popper.js --save
  4. run command npm install bootstrap@4.0.0-beta.3
  5. webpack --config webpack.config.vendor.js - update vendor.js and vendor.css files.
  6. rebuild project and test it. If it will not work also run Install-Package bootstrap -Pre in VS Package Manager Console.

Be prepared that styles will not work anymore. And project will not launch due huge changes in bootstrap.

Hope it will help.



来源:https://stackoverflow.com/questions/47985337/how-to-update-bootstrap-v3-3-7-to-v4-0-0-beta2-in-asp-net-core-2-0-mvc-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!