How to use SASS/SCSS with Laravel Vite

Leave a Comment

Step 1:


npm add -D sass

# OR

yarn add sass -D

Step 2:

Update the `vite.config.js` file like this.

import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';

export default defineConfig({
    plugins: [
        laravel({
            input: [
                'resources/css/app.scss',
                'resources/js/app.js',
            ],
            refresh: true,
        }),
    ],
});

Step 3:

Update the layout file.

@vite(['resources/css/app.scss', 'resources/js/app.js'])

How to Manually Set Language for Syntax Highlighting in Visual Studio Code

Leave a Comment
Sometime we will copy code snippet into Visual studio code, but by default it will be not syntax highlighted.  To enable syntax highlighting please check below video tutorial.



VsCode Syntax Highlighting Shortcut:

MacOS: Cmd+K, then press M
Windows: Ctrl+K, then press M





Import MySQL Table Using Command Line

Leave a Comment
Following command will help you to import MySQL table into the database.

mysql -u root -p'mysql' -D security_insights_report_scheduler < defense_customer.sql


How to use multiple versions of jQuery in an Application

Leave a Comment
Below scripts example to use multiple versions of jquery on same page.


<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>var jq142 = jQuery.noConflict();</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script>var jq144 = jQuery.noConflict();</script>
<script src="https://code.jquery.com/jquery-git.js?asdf"></script>
<script>var jq15 = jQuery.noConflict();</script>
<script>
  var $jq142 = jq142("body");
  var $jq144 = jq144("body");
  var $jq15 = jq15("body");
</script>

Merge Videos On Mac Using QuickTime Player In 1 Minute

Leave a Comment
Check this below video, where I explained how to merge/combine two or more videos into single video using QuickTime Player on Mac.

How To Add/Embed Youtube Video to Linkedin Post/Article

Leave a Comment
Let's see how to add or embed youtube video's in your Linkedin post, article, profile or page.

Step 1: Get Youtube video Link

Go to your Youtube page and get the video link by clicking on the share button. It will open popup and now copy the video link.
Embed youtube video in linkedin post or article

Step 2: Embed Youtube video In Linkedin Post, Article, Page or Profile:



Next go to your Linkedin profile, and click on Write An article. Next click on link and paste video link and press enter key.

post youtube video on linkedin company page

How To Create and send HTML Email Template Using GMAIL

Leave a Comment
In this tutorial we are going to see how to create and send HTML Email template using Gmail.

Step 1: Open Email Template

Please open your HTML Email template in your favorite browser.

Send HTML Email Template Using GMAIL

Step 2: Copy and Paste the HTML Template Opened in Gmail
Now use Command + A & Command + C key ( or Ctrl +A & Ctrl+C in windows) shortcut to select and copy opened Email template in Browser. Next login into Gmail and click on Compose, then paste the copied email template into composed email body.
How to Create and send HTML Email in Gmail