New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

zlc

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zlc

Node Command Line server manager tools

latest
Source
npmnpm
Version
1.6.0
Version published
Maintainers
1
Created
Source

zlc

ZLC is a front-end development tool based on webpack and gulp, which supports the separation and development of the front and rear ends.

Installation

Install with npm:

npm install zlc -g

Introduction

  • Build projects quickly
  • Start the static service
  • Monitor file changes, refresh the page in real time.
  • Source compilation, compression(support:css/js/pug/md/vue Etc.)
  • Front-end separation and service forwarding.
  • ES6 to ES5, improved js code browser compatibility

Command list

commandinstructions
zlcStart the static service
zlc configGenerate zlcfile.js configuration file (for configuration code compilation, service forwarding, etc.)
zlc buildCompile the project
zlc -vCheck the currently installed zlc version

Sample zlcfile.js

{
    // Service agent forwarding
    server: {
        port: 8080,
        proxy:{
            //Automatically forward the request containing /api to the target server address
            "/api":{
                target: 'localhost:8080', // target host 
                changeOrigin: true
            }
        }
    }
    // compile
    build :{
        // src: source directory; dist:target directory;
        // Compile js
        js:[],
        css:[],
        // Compile HTML without providing code merge functionality.
        html:[],
        // Compiling jade does not provide code merge functionality.
        others:[]
    },
    //The compiled file holds the directory.
    dist:"dist",
    //Global substitution field
    replace:[
        {src:"${version}",value:"?_v=0.0.1",}
    ]
}

Keywords

node

FAQs

Package last updated on 24 Mar 2019

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