Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

@times-visuals/times-harness

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@times-visuals/times-harness

Webpack harness environment for The Times website

latest
npmnpm
Version
1.3.0
Version published
Maintainers
2
Created
Source

Webpack config harness for The Times website

Harness for running local dev inside The Times website

Installation

# Yarn
$ yarn add @times-visuals/times-harness

# npm
$ npm add @times-visuals/times-harness

Usage

const path = require("path");
const webpackGenerator = require("@times-visuals/times-harness");

module.exports = webpackGenerator(
  "./src/index.js",
  {
    baseDirectory: path.resolve(__dirname, "./src"),
    distDirectory: path.resolve(__dirname, "./.tmp")
  },
  "your-component-name",
  `<your-component-name example="attribute"></your-component-name>`
);

You can optionally pass a build mode as the final argument – development (default if not supplied) or production:

module.exports = webpackGenerator(
  "./src/index.js",
  {
    baseDirectory: path.resolve(__dirname, "./src"),
    distDirectory: path.resolve(__dirname, "./.tmp")
  },
  "your-component-name",
  `<your-component-name example="attribute"></your-component-name>`,
  "production"
);

FAQs

Package last updated on 14 Jun 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