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.
- Host: GitHub
- URL: https://github.com/devlop/laravel-mix-manifest-webpack-plugin
- Owner: devlop
- License: mit
- Created: 2021-03-08T09:41:52.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-09T08:48:53.000Z (almost 5 years ago)
- Last Synced: 2025-03-06T13:47:30.636Z (about 1 year ago)
- Topics: laravel-mix, webpack-plugin
- Language: JavaScript
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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',
}),
],
}
```