Socket
Book a DemoInstallSign in
Socket

@asi-team/angular-builders-custom-webpack

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@asi-team/angular-builders-custom-webpack

asi builders use the @angular-builders/custom-webpack with build-in functionality wich can be disable

1.1.6
latest
npmnpm
Version published
Weekly downloads
15
Maintainers
3
Weekly downloads
 
Created
Source

Custom webpack builders for Angular build facade with build-in functionality

asi builders use the @angular-builders/custom-webpack with build-in functionality wich can be disable

This documentation is for the latest major version only

Prerequisites:

  • Angular CLI 10

Usage

See the @angular-builders/custom-webpack doc for basic usage : https://www.npmjs.com/package/@angular-builders/custom-webpack

built-in functionality

version file

Usage

This function generate a single json file on output build directory that contain the following informations :

{"version":,"buildDate":}

These datas are also written at the begining of main generated js entries (main, runtime and polyfile)

/*
 *
 * Build Version : <Version in package.json>
 * Build Date    : <Build datetime>
 *
 */

Configuration

"builder": "@asi-team/angular-builders-custom-webpack:browser",
  "options": {
    "customWebpackConfig": {
      "buildInfos": true // enable/disable the functionality, default true
    }
  }

i18n json merge

Usage

This function allow to merge json i18n files into single output json file per lang

Configuration

"builder": "@asi-team/angular-builders-custom-webpack:browser",
  "options": {
    "customWebpackConfig": {
      "i18nPaths": [       // Source directories relative to project root where pick up recursively <lang>.json files, default ["i18n"]
        "<directory 1>",
        "<directory 2>",
        ...
      ],
      "i18nOutputPath": "<directory>", target directory relative to output dist folder where to write merged <lang>.json files, default "i18n"
      "mergeI18n": true // enable/disable the functionality, default true
    }
  }

Write your own webpack.config.js

You can write your own webpack.config.js (see the base custom webpack builders doc), in this case the plugins are merged to combine these functionality and yours

FAQs

Package last updated on 18 Nov 2020

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.