laravel-mix-php-manifest

1.1.0 • Public • Published

Laravel Mix PHP manifest

Node.js CI GitHub license npm version

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.

Readme

Keywords

Package Sidebar

Install

npm i laravel-mix-php-manifest

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

6.2 kB

Total Files

4

Last publish

Collaborators

  • hbgl