📜  webpack 字体真棒 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:24.328000             🧑  作者: Mango

代码示例1
// implementing font awesome 5 (fa5) in symfony 4+ applications using webpack
// firstly install fontawesome. Run `yarn add @fortawesome/fontawesome-free` on your terminal.
//Then you simply require all.css and all.js in your app.js file.
// Incase it's not clear which app.js file I'm referring to here,
// you can find the app.js file in the app-root/assets/js directory.
import '@fortawesome/fontawesome-free/js/all.js';
import '@fortawesome/fontawesome-free/css/all.css';