Socket
Book a DemoInstallSign in
Socket

webpack-build-linked-packages

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-build-linked-packages

A webpack plugin that runs a build script for any symlinked packages in node_modules (e.g. via `npm link` or `yarn link`).

latest
Source
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

Webpack Build Linked Packages

npm

A webpack plugin that runs a build script for any symlinked packages in node_modules (e.g. via npm link or yarn link).

This can be handy when testing local changes to a package that has a build step (e.g. for stripping type annotations, or transpiling syntax with Babel). It can be easy to forget to rebuild the local package after each code change – instead you can install this plugin, and have the local package automatically rebuilt on each webpack compile.

Installation

npm install webpack-build-linked-packages --save-dev

Usage

In your webpack config, require the plugin then add an instance to the plugins array.

const WebpackBuildLinkedPackages = require("webpack-build-linked-packages");

module.exports = {
  plugins: [
    new WebpackBuildLinkedPackages({
      // Options go here
    })
  ]
};

Options (read the schema)

scriptName

Type: string

Default: build

The NPM script to run in all linked packages. If the script is defined in the linked package, it will be invoked with npm run-script.

Keywords

webpack

FAQs

Package last updated on 19 Jul 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