node_modules/laravel-mix/src/File.js
/**
     * Minify the file, if it is CSS or JS.
     */
Minify the file, if it is CSS or JS.
Minify the file if it is CSS or JS .
minify() {
        if (this.extension() === '.js') {
            this.write(uglify.minify(this.path(), Config.uglify).code);
        }
        if (this.extension() === '.css') {
            this.write(
                new UglifyCss(Config.cleanCss).minify(this.read()).styles
            );
        }
        return this;
    }
minify ( ) { if ( this . extension ( ) === '.js' ) { this . write ( uglify . minify ( this . path ( ) , Config . uglify ) . code ) ; } if ( this . extension ( ) === '.css' ) { this . write ( new UglifyCss ( Config . cleanCss ) . minify ( this . read ( ) ) . styles ) ; } return this ; }
Minify the file, if it is CSS or JS.
Minify the file if it is CSS or JS .