open-index/open-npm huggingface dataset:
npm package: @flemist/rollup-plugin-css-chunks
Description: Rollup plugin to extract CSS into chunks
Author: Fábio Domingues
Latest version: 3.0.2

# rollup-plugin-css-chunks

[Rollup](https://github.com/rollup/rollup) plugin to extract imported CSS files as chunks, allowing code split of CSS
stylesheets. Use [rollup-plugin-extract-bundle-tree](https://github.com/domingues/rollup-plugin-extract-bundle-tree) to
extract dependencies between JS and CSS chunks.

## Installation

```bash
npm install --save-dev rollup-plugin-css-chunks
```

## Features

- Split CSS in chunks;
- Load CSS map referenced or embedded on `sourceMappingURL`;
- Return CSS chunk public URL;

## Usage

```javascript
import css_chunk_url from './home.css';

const css_chunk_map_url = css_chunk_url + '.map';
console.log({css_chunk_url, css_chunk_map_url})
```

## Configuration

```js
// rollup.config.js
import css from 'rollup-plugin-css-chunks';

export default {
    input: 'src/main.js',
    output: {
        dir: 'public',
        format: 'esm'
    },
    plugins: [
        css({
            // inject a CSS `@import` directive for each chunk depended on
            injectImports: false,
            // name pattern for emitted secondary chunks
            chunkFileNames: '[name]-[hash].css',
            // name pattern for emitted entry chunks
            entryFileNames: '[name].css',
            // public base path of the files
            publicPath: '',
            // generate sourcemap
            sourcemap: false,
            // emit css/map files
            emitFiles: true,
        })
    ]
}
```

## License

MIT
npm package: @flemist/rollup-plugin-import-assets
Description: Rollup plugin to import assets
Author: Fábio Domingues
Latest version: 2.0.1

# rollup-plugin-import-assets

[Rollup](https://github.com/rollup/rollup) plugin to import assets.
Use [rollup-plugin-extract-bundle-tree](https://github.com/domingues/rollup-plugin-extract-bundle-tree) to extract dependencies between JS and imported assets.


## Installation

```bash
npm install --save-dev rollup-plugin-import-assets
```

## Usage

```js
import importAssets from 'rollup-plugin-import-assets';

export default {
  input: 'src/main.js',
  output: {
    dir: 'public',
    format: 'esm'
  },
  plugins: [
    importAssets({
        // files to import
        include: [/\.gif$/i, /\.jpg$/i, /\.png$/i, /\.svg$/i],
        // files to exclude
        exclude: [],
        // copy assets to output folder
        emitAssets: true,
        // name pattern for the asset copied
        fileNames: 'assets/[name]-[hash].[ext]',
        // public path of the assets
        publicPath: ''
    })
  ]
}
```

```js
import profilePicture from './img/photo.jpg';

const img = `<img src="${profilePicture} />"`;
```

## License

MIT
npm package: @flemist/rollup-plugin-typescript
Description: Seamless integration between Rollup and TypeScript.
Author: Oskar Segersvärd
Latest version: 8.3.4

This is the https://www.npmjs.com/package/@rollup/plugin-typescript/v/8.3.3 module with allowed `noEmit` and `emitDeclarationOnly` options.

(temporary solution until whit pull request in process: https://github.com/rollup/plugins/pull/1206)