HTTP/2 200
date: Thu, 24 Jul 2025 01:04:36 GMT
content-type: text/html
cf-ray: 963f81107cd9c1a6-BLR
cf-cache-status: MISS
cache-control: public, max-age=14400
last-modified: Thu, 24 Jul 2025 01:04:35 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
vary: x-requested-with, x-spiferack, Accept-Encoding
content-security-policy: connect-src 'self' checkout.stripe.com https://checkout.stripe.com https://billing.stripe.com/session https://api.funcaptcha.com https://api.arkoselabs.com sentry.io api.github.com www.npmjs.com;default-src 'none';img-src * data: https://*.stripe.com;script-src 'self' data: 'unsafe-inline' https://checkout.stripe.com/checkout.js https://checkout.stripe.com https://js.stripe.com/v3 https://platform.twitter.com/widgets.js https://octocaptcha.com https://static-production.npmjs.com/;style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://static-production.npmjs.com/;frame-src checkout.stripe.com https://checkout.stripe.com https://js.stripe.com/ https://octocaptcha.com;font-src https://fonts.gstatic.com https://static-production.npmjs.com/ ;media-src https://player.vimeo.com https://fpdl.vimeocdn.com https://gcs-vimeo.akamaized.net https://vod-progressive.akamaized.net
npm-cost: 1
npm-remaining: 99
x-content-security-policy: connect-src 'self' checkout.stripe.com https://checkout.stripe.com https://billing.stripe.com/session https://api.funcaptcha.com https://api.arkoselabs.com sentry.io api.github.com www.npmjs.com;default-src 'none';img-src * data: https://*.stripe.com;script-src 'self' data: 'unsafe-inline' https://checkout.stripe.com/checkout.js https://checkout.stripe.com https://js.stripe.com/v3 https://platform.twitter.com/widgets.js https://octocaptcha.com https://static-production.npmjs.com/;style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://static-production.npmjs.com/;frame-src checkout.stripe.com https://checkout.stripe.com https://js.stripe.com/ https://octocaptcha.com;font-src https://fonts.gstatic.com https://static-production.npmjs.com/ ;media-src https://player.vimeo.com https://fpdl.vimeocdn.com https://gcs-vimeo.akamaized.net https://vod-progressive.akamaized.net
x-content-type-options: nosniff
x-frame-options: DENY
x-robots-tag: noindex
x-xss-protection: 1; mode=block
set-cookie: __cf_bm=CkEYp0IDjPFKGhFwdpjVbb1Uhf4pmo4Mvl309S.F0cw-1753319076-1.0.1.1-Z2KXwdopkEIPQTVQwoICduQUy9rFV5Qb2VPbcJS9UmbNPUmQpc2OzUciJvEogtveDS5Vjqv3m.QX4GAWzXat_09OlpClMsnftEBCVG8ZYQ0; path=/; expires=Thu, 24-Jul-25 01:34:36 GMT; domain=.npmjs.com; HttpOnly; Secure; SameSite=None
set-cookie: __cfruid=a995a1216fb4af3239dd9476bcd1b9b46e473ab0-1753319076; path=/; domain=.npmjs.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
postcss-add-dependencies - npm
postcss-add-dependencies 1.1.1 • Public • Published 4 years ago
postcss-add-dependencies
PostCSS plugin to add dependencies that are necessary for webpack to understand when it needs to run recompilation on the changed files.
This is usefull to watch config files of PostCSS plugins which do not watch it by default. For example:
Install
To install with npm or yarn, use
npm install --save postcss-add-dependencies
// or
yarn add postcss-add-dependencies
Options
dependencies
Array of dependencies. Dependency (array item) is object with type and file/dir properties. Possible dependency types:
{ type : "dependency" , file : "/abs/path/to/file.ext" }
{ type : "build-dependency" , file : "/abs/path/to/file.ext" }
{ type : "missing-dependency" , file : "/abs/path/to/file.ext" }
{ type : "context-dependency" , file : "/abs/path/to/file.ext" }
{ type : "dir-dependency" , dir : "/abs/path/to/dir" }
{ type : "asset" , file : "/abs/path/to/file.ext" , content : ..., sourceMap : ..., info : ... }
See https://github.com/webpack-contrib/postcss-loader/blob/v6.2.0/src/index.js#L189-L217
Usage
postcss.config.js
const path = require ( "path" ) ;
const dependencies = [
{ type : "dependency" , file : path . resolve ( "/abs/path/to/file.ext" ) } ,
{ type : "dir-dependency" , dir : path . resolve ( "/abs/path/to/dir" ) } ,
] ;
module . exports = {
plugins : [
// Plugins for PostCSS
[ 'postcss-add-dependencies' , { dependencies : dependencies } ] ,
] ,
} ;
Package Sidebar Install npm i postcss-add-dependencies
Downloads Weekly Downloads