I made a project with the cli and I have some css and js files in the assets folder that was generated. I am trying to add them to the index.html
file but it keeps coming back as a 404. Is there a different way I need to add my local css and javascript files?
相关问题
- Simple vue app doesn't show anything
- Vue.js computed property loses its reactivity when
- Prerender vue.js 2.0 component (similar to this.$c
- Can Vue2 components be used in Vue3
- Axios POST returns “Network Error” even if status
相关文章
- vue-router how to persist navbar?
- Vue - best way to reuse methods
- how to write computed setters in class-based compo
- preventing Vue from aggresively reusing dom-elemen
- How to use mapState function in typescript syntax
- VueJs: Using component inside another component
- Component without template
- vuejs2 and chosen select issue
Assuming you're using the webpack template, try
/src/assets/...
in theindex.html
In your webpack config file, you can add an alias for your
assets
folder:Then, in your application, you can reference this folder like so: