Way of learning Vue (b) - html file import vue, bootstrap

Way of learning Vue (b) - html file import vue, bootstrap

A, html file import vue

The beginning and try to import vue bootstrap in the parent directory of the directory index.html, the results of crazy error Refused to apply style from 'http://127.0.0.1:5500/node_modules/bootstrap/dist/css/bootstrap.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
as well as Vue.js not found

My solution is to put them under the clip root directory of child index.html file, so as to find. Or foundation is not solid, there have been cases when using a relative path will not find a parent directory, and later to keep in mind

Second, import bootstrap

Because it is his first attempt to import, there have been problems above path, and does not solve the above synchronization, then looked under bootstrap.css code and found a normalize.css file to be imported, then download the normalize.css and placed in the same directory and under bootstrap.css ok.

Released four original articles · won praise 0 · Views 56

Guess you like

Origin blog.csdn.net/weixin_45611255/article/details/103267783