An open API service indexing awesome lists of open source software.

https://github.com/devlop/laravel-mix-manifest-webpack-plugin

Webpack plugin for generating a Laravel Mix compatible manifest.
https://github.com/devlop/laravel-mix-manifest-webpack-plugin

laravel-mix webpack-plugin

Last synced: about 1 year ago
JSON representation

Webpack plugin for generating a Laravel Mix compatible manifest.

Awesome Lists containing this project

README

          


Latest Stable Version
License

# laravel

This will generate a [Laravel Mix](https://laravel-mix.com/) compatible manifest, this is convenient if you are not using Laravel Mix but still want to use the [mix helper](https://laravel.com/docs/8.x/helpers#method-mix) in Laravel.

# Installing

using npm

```bash
npm install @devlop-ab/laravel-mix-manifest-webpack-plugin
```

# Usage

```js
// in webpack.config.js
const LaravelMixManifestWebpackPlugin = require('@devlop-ab/laravel-mix-manifest-webpack-plugin');

// then add to plugins array in config
module.exports = {
plugins: [
new LaravelMixManifestWebpackPlugin({
// the path to the public root
public: path.resolve(__dirname, 'public'),
// the name of the output file
name: 'mix-manifest.json',
}),
],
}
```