Socket
Book a DemoInstallSign in
Socket

@chialab/esbuild-plugin-postcss

Package Overview
Dependencies
Maintainers
2
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chialab/esbuild-plugin-postcss

A CSS loader plugin for esbuild that uses postcss as preprocessor.

latest
Source
npmnpm
Version
0.18.0
Version published
Maintainers
2
Created
Source

Esbuild Plugin Postcss • A CSS loader plugin for esbuild that uses postcss as preprocessor.

NPM

Install

npm i @chialab/esbuild-plugin-postcss -D
yarn add @chialab/esbuild-plugin-postcss -D

Usage

import esbuild from 'esbuild';
import postcssPlugin from '@chialab/esbuild-plugin-postcss';

await esbuild.build({
    plugins: [
        postcssPlugin(),
    ],
});

This plugin looks for a postcss configuration in the project and fallbacks to out custom postcss-preset-env.

Sass

The plugin automatically tries to load the @chialab/postcss-plugin-dart-sass when it processes .scss files. Please make sure to have installed the optional dependency in order to correctly transpiler Sass files:

npm i @chialab/postcss-plugin-dart-sass -D
yarn add @chialab/postcss-plugin-dart-sass -D

License

Esbuild Plugin Postcss is released under the MIT license.

Keywords

esbuild

FAQs

Package last updated on 11 Jan 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