Socket
Socket
Sign inDemoInstall

@activeprospect/integration-dev-webpack

Package Overview
Dependencies
Maintainers
21
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@activeprospect/integration-dev-webpack

Webpack devDependencies package for LeadConduit integrations


Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
21
Weekly downloads
 
Created
Source

Webpack for LeadConduit Integrations

Usage

Include this as a devDependencies entry in integrations with a "rich UI".

Note that though this dependency package depends on express, that package is not in this one's package.json. Any integration that uses this package must also require express. Including it here could lead one to omit it from the integration, where it must be explictly required. In other words, leaving it out here is on purpose. :-)

Conversion

To convert old integrations to use this:

  1. add it as a devDependencies entry in package.json
  2. remove all webpack-* dependencies from package.json
  3. change the pre-publish script (the script name "prepublishOnly" is now recommended over "prepare") in package.json from:
"prepare": "webpack --config lib/ui/webpack.config.js",

to:

"prepublishOnly": "webpack --config node_modules/@activeprospect/integration-dev-webpack/webpack.config.js",
  1. change lib/ui/index.js from:
if (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') {
  router.use(require('./webpack'));
}

...to:

if (process.env.NODE_ENV === 'development') {
  router.use(require('@activeprospect/integration-dev-webpack'));
}
  1. delete the two boilerplate webpack files:
rm lib/ui/webpack.config.js lib/ui/webpack.js

FAQs

Package last updated on 08 Apr 2021

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