简体   繁体   English

氩气设计未在 Laravel 中渲染。 如何使用mix从节点模块中提取它?

[英]Argon design not rendering in laravel. How to extract it from node modules using mix?

I have installed argon design system using npm.我已经使用 npm 安装了氩气设计系统。 And inside head tag I have added links from documentaion.在 head 标签中,我添加了来自文档的链接。 But I want to extract it from node modules using mix.但我想使用混合从节点模块中提取它。 And run in weboack so that it renders styles.并在 weboack 中运行,以便它呈现样式。 Please someone help with detailed answer.请有人帮忙详细解答。

import the argon js file (in bootstrap.js for example if you're using the default laravel boilerplate) after popper, jquery and bootstrap:在 popper、jquery 和 bootstrap 之后导入 argon js 文件(例如在 bootstrap.js 中,如果您使用默认的 Laravel 样板):

require("argon-design-system-free/assets/js/argon-design-system");

and the css file (in app.scss if you're using it):和 css 文件(在 app.scss 中,如果你正在使用它):

@import "~argon-design-system-free/assets/css/argon-design-system.css";

if you want the nucleo icons import then before the css file:如果您希望在 css 文件之前导入核图标:

@import "~argon-design-system-free/assets/css/nucleo-icons.css";

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM