
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
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
The npm package postcss-preset-moxy receives a total of 0 weekly downloads. As such, postcss-preset-moxy popularity was classified as not popular.
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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.