![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
koa-postcss-watch
Advanced tools
var Koa = require('koa')
var mount = require('koa-mount')
var watch = require('koa-postcss-watch')
var app = new Koa()
if (process.env.NODE_ENV === 'development') {
app.use(mount('/bundle.css', watch({
file: 'lib/index.css',
plugins: [require('postcss-import'), require('autoprefixer')]
})))
}
app.use(function (ctx) {
ctx.body = `
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="/bundle.css">
</head>
<body>
Hello world
</body>
</html>
`
})
app.listen(process.env.PORT)
watch([opts])
Create a middleware function. If opts.file
is not defined, path to file will be resolved to ctx.path
relative to opts.root
or process.cwd()
.
Options are forwarded to both chokidar and postcss.
<string>
CSS entry file<string>
Path from which to resolve file paths (defaults to cwd)[<string>]
List of plugins to use with postcss$ npm install -S koa-postcss-watch
MIT
FAQs
Koa middleware for processing css on the fly
We found that koa-postcss-watch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.