D
D
ddddd tttt2019-02-17 05:56:40
webpack
ddddd tttt, 2019-02-17 05:56:40

How to include bootstrap as a separate file?

let mix = require('laravel-mix');
mix.js('vue/app.js', 'web/js');

Can be connected via import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; Bootsrap was installed via webpack, yarn install. If you connect via import, then style is loaded in head.
How to connect with a separate file, for example, app.js is loaded.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question