Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
browserify-postcss
Advanced tools
Readme
A browserify transform to work with postcss.
The build script:
var browserify = require('browserify')
var fs = require('fs')
var b = browserify(__dirname + '/src/entry.js')
b.transform('browserify-postcss', {
// a list of postcss plugins
plugin: [
'postcss-import',
'postcss-advanced-variables',
['postcss-custom-url', [
['inline', { maxSize: 10 }],
['copy', {
assetOutFolder: __dirname + '/static/assets',
baseUrl: 'assets',
name: '[name].[hash]',
}],
]],
],
// basedir where to search plugins
basedir: __dirname + '/src',
// insert a style element to apply the styles
inject: true,
})
b.bundle().pipe(
fs.createWriteStream(to)
)
entry.js:
require('./entry.css')
console.log('styles from entry.css are applied')
Specify a list of postcss plugins to apply.
Type: String
, Array
Default: null
Specify where to look for plugins.
Specify the options for the postcss processor.
The from
and to
fields will be set to the css file path by default.
The to
option is used to calculated url()
in the final styles.
However, if your postcss plugin does not need it,
don't bother to specify.
Specify how to use the styles:
If true
, styles are applied immediately.
If false
, require('style.css')
will return the string representation of the styles.
A list of file extensions to identify styles.
Type: Array
Default: ['.css', '.scss', '.sass']
Imported files will NOT be watched when used with watchify.
require
ing them in js.FAQs
transform contents using postcss
The npm package browserify-postcss receives a total of 893 weekly downloads. As such, browserify-postcss popularity was classified as not popular.
We found that browserify-postcss demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.