a css file, you can import it anywhere that use the javascript.
npm i --save rest-css
you can use it in javascript(maybe vue, react, angluar, etc) directly, as long as you can use javascript. but you sholud keep it importing before all other css files;
- in javascript file
import 'rest-css'
- in vue, as long as you can use javacript, you also can inport it.
<template>
<div id="app"></div>
</template>
<script>
//import css,package autoly
import 'rest-css'
export default { }
</script>
<style>
</style>
- of course, if you don't like import css in js, also in css to import it;
@import url('../node_modules/rest-css/src/rest.css')