
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
vite-plugin-css-url
Advanced tools
This vite plugin allows you to ?url
import css files and have them resolve
to the final bundled css file.
In short, you can write import styles from './my/styles.scss?url'
and have
it actually work as you would expect. If you try to do this in vite it will
sorta work in development mode but in release mode it will return the raw
source code for the styles file (see https://github.com/vitejs/vite/issues/2522).
npm install --save-dev vite-plugin-css-url
yarn install -D vite-plugin-css-url
pnpm install -D vite-plugin-css-url
Use the plugin in your vite config
import ViteCssUrlPlugin from 'vite-plugin-css-url';
export default {
plugins: [
ViteCssUrlPlugin(),
]
}
FAQs
Make ?url imports work for css in vite
The npm package vite-plugin-css-url receives a total of 23 weekly downloads. As such, vite-plugin-css-url popularity was classified as not popular.
We found that vite-plugin-css-url demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.