Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

laravel-mix-banner

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laravel-mix-banner

A Laravel Mix extension for Webpack Banner support.


Version published
Weekly downloads
41
increased by64%
Maintainers
1
Weekly downloads
 
Created

NPM NPM NPM

Laravel Mix Banner

This extension provides instant Webpack Banner support to your Mix (v2.1 and up) builds.

Usage

First, install the extension.

npm install laravel-mix-banner --save-dev

Then, require it within your webpack.mix.js file, like so:

let mix = require('laravel-mix');

require('laravel-mix-banner');

mix
    .js('resources/assets/js/app.js', 'public/js')
    .less('resources/assets/less/app.less', 'public/css')
    .banner({
        banner: (function () {
            return [
                '/**',
                ' * @project        Laravel Mix Banner',
                ' * @author         Rias',
                ' * @build          2018-03-17 17:00 GMT+1',
                ' * @release        0.1.1',
                ' *',
                ' */',
                '',
            ].join('\n');
        })(),
        raw: true,
    });

And you're done! Compile everything down with npm run dev.

FAQs

Package last updated on 03 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts