Skip to content

DrummerSi/laravel-mix-symbolic-links

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Symbolic Links

Software License Latest Version on NPM npm

This package allows the creation of symbolic links (files and folders) during the laravel-mix bundling.

The parameters to the function paths accept both windows & unix-style paths, relative and absolute paths as well as UNC network paths.

Usage

  1. Install the package with npm or yarn:
npm install laravel-mix-symbolic-links --save-dev

yarn add laravel-mix-symbolic-links --dev
  1. Require the extension in your Mix configuration:
const mix = require('laravel-mix');
require('laravel-mix-symbolic-links');
  1. Create symbolic link folders using the createSymbolicFolder method
mix.createSymbolicFolder(path, target)
mix.createSymbolicFolder("dist/data", "src/data")
mix.createSymbolicFolder("dist/data", "//mnt/d/testdata")
mix.createSymbolicFolder("dist/data", "c:/windows/temp")
  1. Create symbolic link files using the createSymbolicFile method
mix.createSymbolicFolder(path, target)
mix.createSymbolicFolder("dist/data/data.json", "src/data/data.json")
mix.createSymbolicFolder("dist/data/data.json", "//mnt/d/testdata/data.json")
mix.createSymbolicFolder("dist/data/data.json", "c:/windows/temp/data.json")

About

Extends Laravel Mix to allow creating symbolic links

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published