[英]Using import to get css files in ES6 (java script 6)
我看到了下一個ES6代碼:
import '../node_modules/spectre.css/dist/spectre.min.css';
import './styles.css';
使用的含義是什么。 .. ... .... 剛過
import '
點表示您從哪個目錄開始。
./index.js
在當前目錄中查找index.js。 ../index.js
在父目錄中查找index.js。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.