
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
@css-blocks/config
Advanced tools
Loads configuration for css-blocks from standardized locations so that build integrations, text editors, and the cli can all interoperate with the same configuration.
yarn add @css-blocks/config
import { Options as CSSBlocksOptions } from "@css-blocks/core";
import * as config from '@css-blocks/config';
// finds configuration starting in the current working directory.
let opts: CSSBlocksOptions | null = config.search();
// finds configuration starting in the specified directory;
opts = config.search(__dirname);
// loads a specific configuration file:
opts = config.load("config/css-blocks.js");
The values specified in the configuration files are expected to be legal options for the CSS Blocks configuration. However, there are a few exceptions:
preprocesors
- This can be set to a file location of a javascript file that
exports one or more preprocessors. The properties exported should correspond to the
supported syntaxes.importer
- This can be set to a file location of a javascript file that
exports an object with keys of importer
and (optionally) data
. If data
is returned, it takes precedence over a configuration value for
importerData
in the current configuration file.extends
- If provided, this configuration file located at the provided path
is loaded and this configuration is deeply merged into it. Note: the values
for importer
and importerData
are not deeply merged.rootDir
- If this configuration property is not set explicitly, the directory of the
configuration file is used.Note: Any path to another file or directory is interpreted as being relative to the directory of the file containing the path.
FAQs
Standardized access to css-blocks configuration files.
The npm package @css-blocks/config receives a total of 16 weekly downloads. As such, @css-blocks/config popularity was classified as not popular.
We found that @css-blocks/config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.