Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.19 KB

File metadata and controls

35 lines (27 loc) · 1.19 KB

Latest Stable Version License

laravel

This will generate a Laravel Mix compatible manifest, this is convenient if you are not using Laravel Mix but still want to use the mix helper in Laravel.

Installing

using npm

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

Usage

// 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',
        }),
    ],
}