{"library":"rollup-plugin-hot-css","title":"rollup-plugin-hot-css","description":"A Rollup plugin for loading CSS files with Hot Module Replacement (HMR) support via Nollup. Version 0.7.2 is the latest release. It supports preprocessing with built-in scss and less loaders or custom loaders (including PostCSS), resolves asset URLs (images, fonts), and emits them as Rollup assets. HMR works by replacing the <link> tag href with a timestamp to force browser reload. Differentiates from other CSS plugins by focusing on HMR with Nollup and flexible loader chaining.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-hot-css"],"cli":null},"imports":["import hotcss from 'rollup-plugin-hot-css'","const hotcss = require('rollup-plugin-hot-css')","// @ts-ignore or declare module 'rollup-plugin-hot-css'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nconst hotcss = require('rollup-plugin-hot-css');\n\nmodule.exports = {\n  input: 'src/main.js',\n  output: {\n    dir: 'dist',\n    format: 'esm',\n    assetFileNames: '[name][extname]'\n  },\n  plugins: [\n    hotcss({\n      file: 'styles.css',\n      extensions: ['.css', '.scss'],\n      loaders: ['scss'],\n      hot: true,\n      publicPath: '/'\n    })\n  ]\n};","lang":"javascript","description":"Basic Rollup config using rollup-plugin-hot-css with SCSS preprocessing and HMR.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}