Socket
Socket
Sign inDemoInstall

magento-frontend

Package Overview
Dependencies
303
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    magento-frontend

Magento 2 Minify files in pub folder


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 05 May 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc