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

@ng-vcl/webpack-helper

Package Overview
Dependencies
Maintainers
6
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ng-vcl/webpack-helper

Helper for VCL support in Angular CLI

  • 0.2.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

webpack-helper

Extends the Angular CLI webpack config with vcl support.

Requirements / Installation

  • @vcl/preprocessor: ^0.6.0
  • css-loader: ^3.2.0
  • webpack-merge: ^4.2.2
npm install @vcl/preprocessor webpack-merge css-loader --save-dev
$ npm install @vcl/preprocessor webpack-merge css-loader @ng-vcl/webpack-helper --save-dev

Usage

For this example we use ngx-build-plus and webpack-merge to add vcl support to the angular cli webpack config. Check the ngx-build-plus docs for information how to use a plugin.

const webpackHelpers = require('@ng-vcl/webpack-helper');
const merge = require('webpack-merge');

module.exports.default = {
  opts: null,

  pre(builderConfig) {
    this.opts = {
      sourceMap: builderConfig.options.sourceMap, // Use settings from builder
      extractCSS: builderConfig.options.extractCss // Use settings from builder
    };
  },

  config(cfg) {
    return merge(cfg, webpackHelpers(this.opts));
  }
};
Options
  • extractCSS [false] - Extract css into seperate file
  • sourceMap [false] - Generate a source map
  • globalStyle ['src/styles.sss'] - Path to global style(s). Can be array or string.
  • root [process.cwd()] - Base directory
  • fa [false] - Enable @vcl/font-awesome path fix
  • mdi [false] - Enable @vcl/mdi path fix

Keywords

FAQs

Package last updated on 13 Jan 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

  • 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