🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@yqg/webpack-plugin

Package Overview
Dependencies
Maintainers
15
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yqg/webpack-plugin

Webpack Plugins for YQG

latest
npmnpm
Version
5.0.13
Version published
Maintainers
15
Created
Source

@yqg/webpack-plugin

webpack plugins for yqg.

WebpackVersionPlugin

Add a json file to your webpack bundle file with the webpack hash and time.

This can be used to help single page apps detect a new version.

Usage

// webpack.config.js
{
  plugins: [
    new WebpackVersionPlugin(options)
  ]
}
// Options
interface Options {
  filename?: string; // version.json by default
}

Output

{
  "version": "44c56d816a031ada87401d28a1339b9a",
  "date": "2018-06-26T12:07:16.683Z"
}

WebpackQiniuUploadPlugin

Upload Media Sources to qiniu.

Usage

// webpack.config.js
{
  plugins: [
    new WebpackQiniuUploadPlugin(options)
  ]
}
// Options
interface Options {
  bucket: string;
  accessKey: string;
  secretKey: string;
  dir: string; // 一般业务需要配置 bucket,存放资源的目录,比如:'cdn/yqg-tech/static'
}

WebpackI18nPlugin

Add a i18n json file to your webpack build file.

Useage

// webpack.config.js
{
  plugins: [
    new WebpackI18nPlugin(options)
  ]
}
// Options
interface Options {
  filename?: string; // i18n.json by default
  getI18nContent?: () => Promise<Object>; // get i18n json content by yourself
}

FAQs

Package last updated on 04 Jun 2024

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