JSPM

laravel-mix-symbolic-links

0.8.8
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q45479F
  • License MIT

Extends Laravel Mix to allow creating symbolic links

Package Exports

  • laravel-mix-symbolic-links
  • laravel-mix-symbolic-links/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (laravel-mix-symbolic-links) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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")