1
Well, I have a template that on certain pages you need specific files to upload. So how do I import a css or js file into the page you need?
Let’s say the page home do not need, but on the page user yes.
1
Well, I have a template that on certain pages you need specific files to upload. So how do I import a css or js file into the page you need?
Let’s say the page home do not need, but on the page user yes.
0
I believe css can be imported this way
<style>
@import './assets/styles/arquivo.css';
</style>
The script can be like this
<template>
...
</template>
<script>
export default {
import * as mylib from '../assets/js/arquivo.js'
}
</script>
Browser other questions tagged javascript vue.js
You are not signed in. Login or sign up in order to post.
It even works, but error, says that the module was not found, but the script plays the role of it. But then it stops working in seconds.
– Pedro Henrique
the css of the syntax error
– Pedro Henrique