Bootstrap 4 on Single Page Application Angular + .Net Core

前端 未结 3 1150
花落未央
花落未央 2021-02-06 18:39

Anyone tried to make an application with

dotnet new --install Microsoft.AspNetCore.SpaTemplates::*
dotnet new angular

? like in this example ht

3条回答
  •  -上瘾入骨i
    2021-02-06 18:56

    You can update the bootstrap version in your package.json like this

     "bootstrap": "4.0.0-alpha.6",
    

    and delete your node_modules and do a npm install again.

    That's it. You don't need to touch the webpack.config.vendor.js because it already referenced the bootstrap css 'bootstrap/dist/css/bootstrap.css',

    Whenever you add/remove something in webpack, you need to generate the bundle.

    webpack --config webpack.config.vendor.js
    

    And run

    webpack
    

    to generate the main bundle. Hope this helps.

提交回复
热议问题