1

I have two CSS files app.css(RTL CSS) and en-app.css(LTR CSS) I want to compile them using Laravel Mix into two files, How I can (I don't want to paste them directly in Public/CSS directory Instead I want to use advantages of Mix)

1
  • You need to ad the code to your question to get answers. But I would say, take a look at webpack.mix.js. Commented Feb 16, 2022 at 7:58

1 Answer 1

1

It should be quite straightforward. Usually you should have something like mix.js('resources/js/app.js', 'js').sass('resources/sass/app.scss', 'css'); in you mix file. As you can see you can stack multiple calls to the mix function. So you will need to make a separate call to .scss mix.js('resources/js/app.js', 'js').sass('resources/sass/app.scss', 'css').sass('resources/sass/en-app.scss', 'css');

After running the compiler you should see the two files in the ./public/css/ folder.

Note: If you are using plain CSS you will need to replace .scss with .css function in the mix file.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.