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.
- Open Node.js Console
- Cd Path to your project where
package.json
is located - run command
npm install popper.js --save
- run command
npm install bootstrap@4.0.0-beta.3
webpack --config webpack.config.vendor.js
- update vendor.js and vendor.css files.- 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.