What is the proper way of adding external CSS file in Vue.js Application ?
I found several ways to add CSS file in Vue.js Application.
Some one suggest to use this one. <link rel="stylesheet" type="text/css" href="/static/bootstrap.min.css">.
Some one suggest this one
<style lang="scss">
@import 'src/assets/css/mycss_lib.css';
</style>
Some one suggest this one
require('./assets/layout3/css/layout.min.css')
Some one suggest to use below code in webpack.config.js.
{
test: /\.(css|less)$/,
use: [{
loader: "style-loader" // creates style nodes from JS strings
}, {
loader: "css-loader" // translates CSS into CommonJS
}, {
loader: "less-loader" // compiles Less to CSS
}]
}
Some one suggest to use this one
<style src="../node_modules/vue-multiselect/dist/vue-multiselect.min.css"></style>
What are the merits and demerits of using all those ways ?
I would like to use in a way so that all CSS files become a single file at the time of deployment. So that my application loads faster.