Socket
Socket
Sign inDemoInstall

postcss-preset-moxy

Package Overview
Dependencies
Maintainers
19
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-preset-moxy

PostCSS preset to be used at MOXY


Version published
Maintainers
19
Created
Source

postcss-preset-moxy

NPM version Downloads Build Status Coverage Status Dependency status Dev Dependency status

PostCSS preset to be used at MOXY.

Installation

$ npm install postcss-preset-moxy --save-dev

You might need to also install postcss-cli as a dev dependency.

Motivation

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.

Usage

Create 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:

NameDescriptionTypeDefault
importOptions to pass to postcss-importObjectundefined
mixinsOptions to pass to postcss-mixinsObjectundefined
cssVariablesOptions to pass to postcss-css-variables, false disables the pluginObject/boolean{ preserveAtRulesOrder: true }
urlOptions to pass to postcss-url, false disables any transpilation of url() declarationsArray/Object/boolean{ url: 'rebase' }
browsersSupported browsers list to pass to postcss-cssnextArraybrowserslist-config-google

The postcss-url plugin is enabled by default. You may disable it like so:

module.exports = require('postcss-preset-moxy')({
    url: false,
});

Tests

$ npm test
$ npm test -- --watch during development

License

MIT License

Keywords

FAQs

Package last updated on 16 Sep 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc