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

@abcnews/aunty-pl

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abcnews/aunty-pl

Tools to extend @abcnews/aunty for Presentation Layer

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
4
Weekly downloads
 
Created
Source

@abcnews/aunty-pl

Tools to extend @abcnews/aunty for Presentation Layer

Prerequisites

  1. Install this package into your react aunty project as a development dependency
npm install -D @abcnews/aunty-pl
  1. Create (or update) your aunty.config.js file so that it contains at a minimum:
module.exports = {
  type: 'react',
  webpack: config => {
    return config;
  }
};

If you had to create the file above, remember to delete the now-redundant aunty property from your package.json file.

Usage

To enable aunty to build projects that depend on @abcaustralia/* component libraries, import the applyWebpackRules utility from this package into your aunty.config.js, and call it with your Webpack config object:

const { applyWebpackRules } = require('@abcnews/aunty-pl');

module.exports = {
  type: 'react',
  webpack: config => {
    applyWebpackRules(config);

    return config;
  }
};

The effects of applying this update are:

  • The existing Webpack rule that handles .css / .scss files excludes the @abcaustralia package namespace.
  • A new rule is added specifically for handling .css files under the @abcaustralia package namespace, which applies, in order:
    1. their postcss-loader
    2. our css-loader with their options (they use CSS modules)
    3. our last loader, which will either be MiniCssExtractPlugin's loader or style-loader (default), depending on whether our project is configured to extract CSS into separate assets or not.

FAQs

Package last updated on 15 Feb 2023

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