Socket
Book a DemoInstallSign in
Socket

@wpackio/entrypoint

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wpackio/entrypoint

An entrypoint for webpack which is added automatically for safe publicPath.

6.4.0
latest
Source
npmnpm
Version published
Weekly downloads
48
-25%
Maintainers
1
Weekly downloads
 
Created
Source

@wpackio/entrypoint

A custom entry-point for webpack. This is designed to set the publicPath dynamically under production build. This should not be used elsewhere.

Please see wpack.io for usage.

Installation

If using yarn

yarn add @wpackio/entrypoint

or with npm

npm i @wpackio/entrypoint

Usage

It is taken care of automatically. What @wpackio/scripts does is adds @wpackio/entrypoint/lib/index.js under all entry-points.

It depends on __WPACKIO__ free variable, as defined by webpack.DefinePlugin. All of it is taken care of by @wpackio/scripts.

Development

This package has the same npm scripts as this monorepo. These should be run using lerna run <script>. More information can be found under CONTRIBUTION.md.

  • build: Use babel to build for nodejs 8.6+. Files inside src are compiled and put under lib. All type definitions are stripped and individual type declaration files are created.
  • prepare: Run build after yarn and before publish.
  • lint: Lint all files using eslint.
  • test: Run tests on files using jest.

Keywords

wordpress

FAQs

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

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.