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

@master/css.vite

Package Overview
Dependencies
Maintainers
2
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@master/css.vite

A vite plugin for integrating Master CSS ahead-of-time compilation

2.0.0-beta.96
Source
npm
Version published
Weekly downloads
157
12.95%
Maintainers
2
Weekly downloads
 
Created
Source

Master CSS

A vite plugin for integrating Master CSS ahead-of-time compilation

NPM Version NPM Version NPM package ( download / month ) Discord online Follow @mastercorg Github release actions

Getting Started

npm install @master/css.vite@beta -D

vite.config.js

import { MasterCSSVitePlugin } from '@master/css.vite'

/** @type {import('vite').UserConfig} */
const config = {
    plugins: [
        MasterCSSVitePlugin()
    ]
}

export default config

Import the virtual CSS module into src/main.ts:

import './style.css'
import 'master.css'

Example https://github.com/master-co/css/tree/beta/examples/vite

Compiler Options

Master presets common configurations for various frameworks and build tools, and it works almost out of the box.

https://github.com/master-co/css/tree/beta/packages/compiler

For starters, you can enable { debug: true } to see how it scans, extracts, and compiles.

Keywords

webpack

FAQs

Package last updated on 23 Dec 2022

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