Socket
Socket
Sign inDemoInstall

patch-angular-postcss

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    patch-angular-postcss

This library exports function that can be used inside custom-webpack to add custom postcss plugins


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
28.4 kB
Created
Weekly downloads
 

Readme

Source

Patch Angular PostCSS

This library exports function that can be used inside custom-webpack to add custom postcss plugins

API

namedefaultdescription
webpackConfigWebpack config
addPlugins[]Array of plugins
patchComponentsStylesfalsepatch components styles
patchGlobalStylestruepatch components styles

Example

webpack.config.js:

const { patchAngularPostCSS } = require("patch-angular-postcss");


module.exports = (config) => {
  function patchAngularPostCSS({
    webpackConfig: config,
    addPlugins: [require('postcss-preset-env'), require('postcss-css-variables')],
    patchComponentsStyles: true,
    patchGlobalStyles: true,
  }
  return config;
};

Contributing

npm start # or yarn start

This builds to /dist and runs the project in watch mode so any edits you save inside src causes a rebuild to /dist.

To do a one-off build, use npm run build or yarn build.

To run tests, use npm test or yarn test.

Bundle Analysis

size-limit is set up to calculate the real cost of your library with npm run size and visualize the bundle with npm run analyze.

FAQs

Last updated on 29 Jan 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc