Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
postcss-preset-moxy
Advanced tools
PostCSS preset to be used at MOXY.
$ npm install postcss-preset-moxy --save-dev
You might need to also install postcss-cli as a dev dependency.
If you are developing a project that uses new CSS language features and must work on targets that do not yet support them, you have to transpile your styles. This preset provides a shareable PostCSS config as a preset that should be used across those projects at MOXY.
@import
statements are inlinedurl()
statements are processed@if
and @else
statements, useful inside mixinsalpha
, lightness
and other color utilitiesCreate postcss.config.js
at the root of your project:
module.exports = require('postcss-preset-moxy')();
...or with options
module.exports = require('postcss-preset-moxy')({
import: { path: './src/styles' },
mixins: { mixinsDir: './src/styles/mixins' },
});
Available options:
Name | Description | Type | Default |
---|---|---|---|
import | Options to pass to postcss-import | Object | undefined |
mixins | Options to pass to postcss-mixins | Object | undefined |
cssVariables | Options to pass to postcss-css-variables, false disables the plugin | Object/boolean | { preserveAtRulesOrder: true } |
url | Options to pass to postcss-url, false disables any transpilation of url() declarations | Array/Object/boolean | { url: 'rebase' } |
browsers | Supported browsers list to pass to postcss-cssnext | Array | browserslist-config-google |
The postcss-url plugin is enabled by default. You may disable it like so:
module.exports = require('postcss-preset-moxy')({
url: false,
});
$ npm test
$ npm test -- --watch
during development
FAQs
PostCSS preset to be used at MOXY
We found that postcss-preset-moxy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 19 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.