S
S
Serufim2017-01-22 17:36:05
npm
Serufim, 2017-01-22 17:36:05

How to use npm downloaded libraries in laravel project?

I'm learning laravel but I don't understand where and how to store my css styles and js scripts in it, I installed normalize.css via npm but I can't access it from the template

link rel="stylesheet" href="../../node_modules/normalize.css/normalize.css">
this method does not work, tell me how to get access to this file

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Archakov Dennis, 2017-01-22
@Serufim

Via gulp. Install 1 CSS with styles. For example app.sass. And inside it, import all these styles already, then through elixiryou get one file and connect it to the site

G
Grand Silence, 2017-01-23
@mixtape774

Here is an example when using Gulp + Sass.

@import "node_modules/slick-carousel/slick/slick.scss"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question