🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@samatech/postcss-basics

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@samatech/postcss-basics

Simple opinionated PostCSS plugin pack.

0.7.4
latest
Source
npm
Version published
Maintainers
1
Created
Source

PostCSS Basics

PostCSS plugin pack for quick project bootstrapping.

Intended for use with Vite, so postcss-modules and postcss-import are not included.

Plugins:

Usage

Step 1: Install plugin:

npm install --save-dev @samatech/postcss-basics

Step 2: Check your project for existing PostCSS config: postcss.config.js in the project root, "postcss" section in package.json or postcss in bundle config.

If you do not use PostCSS, first add it according to PostCSS docs.

Step 3: Add the plugin to plugins list (note the spread operator and the extra () after the import statement):

import postcssBasics from '@samatech/postcss-basics'
export default {
  plugins: [
    ...postcssBasics(),
  ],
};

This can be simplified if you are not using other plugins:

import postcssBasics from '@samatech/postcss-basics'
export default {
  plugins: postcssBasics(),
};

Options

TODO

  • Pass through options for plugins
  • Disable plugins

Call plugin function to set options:

import postcssBasics from '@samatech/postcss-basics'
postcssBasics()

Keywords

postcss

FAQs

Package last updated on 12 May 2024

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