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

magento-frontend

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magento-frontend

Magento 2 Minify files in pub folder

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

magento-frontend

Magento 2 Minify all assets files in public path

Install

npm i -D magento-frontend
yarn add -D magento-frontend

Argumnets

basePath: type:String

themes: type: Array

options: type: Object

Options:

debug: type Boolean, default false

uglify: you uglify confing

autoprefixer: you autoprefixer confing

csso: you csso confing

Usage

Create js file in magento2 instal folder myfile.js And insert this code :

let optimazer = require('magento-frontend');
optimazer(__dirname,[{
    vendor:'Magento',
    theme:'luma',
    lang:'en_US'
  },{
    vendor:'Magento',
    theme:'blank',
    lang:'en_US'
  }],{
    debug:true,
    uglify:{/*custom options*/},
    autoprefixer:{/*custom options*/},
    csso:{/*custom options*/}
});

Run

node ./myfile.js

Keywords

FAQs

Package last updated on 05 May 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc