laravel-mix-php-manifest
v1.1.0
Published
A Laravel Mix extension that creates a PHP manifest file.
Downloads
2
Readme
Laravel Mix PHP manifest
This Laravel Mix extension creates a PHP manifest file for your build. You can include the PHP manifest directly in your PHP code without having to parse the JSON manifest.
Installation
npm install laravel-mix-php-manifest
Usage
webpack.mix.js
const mix = require('laravel-mix');
require('laravel-mix-php-manifest');
mix.version();
mix.phpManifest({ /* options */ });
See the example for more information.
Options
dirName (string)
Set the relative or absolute output directory for the PHP manifest file. Default: Same directory as JSON manifest.
fileName (string)
Set the file name of the PHP manifest file. Default: Same as JSON manifest with php file extension.
path (string)
Set full path of the PHP manifest file. Overrides dirName
and fileName
.
deleteJsonManifest (boolean)
Delete the JSON manifest file. Default: false
.
endOfLineSequence (string)
The end-of-line sequence used in the PHP manifest file. Default: \n
.
indentation (string)
The string used to indent entries in the PHP manifest file. Default: four spaces.
License
This library is licensed under the MIT license.