All Projects → bengsfort → rollup-plugin-copy-assets

bengsfort / rollup-plugin-copy-assets

Licence: MIT license
Copy additional assets into the output directory of your rollup bundle.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to rollup-plugin-copy-assets

adonis-bundler
Blazing fast, zero configuration assets bundler for AdonisJS
Stars: ✭ 19 (-24%)
Mutual labels:  assets
hirez-api-docs
🚧 Unofficial Hi-Rez Studios API documentation (and assets where possible) for Paladins, Realm Royale, and Smite.
Stars: ✭ 20 (-20%)
Mutual labels:  assets
summon
Summon: your data on caffeine
Stars: ✭ 12 (-52%)
Mutual labels:  assets
picasso
Picasso is a tool that can take a template and data, and generate images from them.
Stars: ✭ 16 (-36%)
Mutual labels:  assets
auto assets
assets management tool for Flutter
Stars: ✭ 17 (-32%)
Mutual labels:  assets
airdrop
A Laravel package to speed up deployment by skipping asset compilation whenever possible.
Stars: ✭ 159 (+536%)
Mutual labels:  assets
rollup-plugin-generate-package-json
Generate package.json file with packages from your bundle using Rollup
Stars: ✭ 29 (+16%)
Mutual labels:  rollup-plugin
django-manifest-loader
Simplifies webpack configuration with Django
Stars: ✭ 105 (+320%)
Mutual labels:  assets
rollup-plugin-lit-css
Moved to https://github.com/bennypowers/lit-css
Stars: ✭ 35 (+40%)
Mutual labels:  rollup-plugin
rollup-plugin-external-globals
Transform external imports into global variables like output.globals.
Stars: ✭ 57 (+128%)
Mutual labels:  rollup-plugin
furatto-rails
Furatto CSS Framework for Rails Asset Pipeline
Stars: ✭ 36 (+44%)
Mutual labels:  assets
Unity3DShaders
Simple shaders for Unity3D that I created for games, for a challenge or following tutorials.
Stars: ✭ 17 (-32%)
Mutual labels:  assets
JB2A DnD5e
Templates of spells from the DnD5e ruleset (SRD and PHB), to use on FoundryVTT
Stars: ✭ 28 (+12%)
Mutual labels:  assets
project-curator
A convenient tool to help cleaning and to maintain Unity Projects ✨
Stars: ✭ 99 (+296%)
Mutual labels:  assets
Unity StarGlow
Simple star-glow effect.
Stars: ✭ 39 (+56%)
Mutual labels:  assets
rollup-plugin-html
Import HTML files as strings in rollup build
Stars: ✭ 36 (+44%)
Mutual labels:  rollup-plugin
ScriptableObjectCollection
A library to help improve the usability of Unity3D Scriptable Objects by grouping then into a collection and exposing then by code or nice inspectors!
Stars: ✭ 204 (+716%)
Mutual labels:  assets
asset-mix
Provides helpers functions for CakePHP to use Laravel Mix.
Stars: ✭ 27 (+8%)
Mutual labels:  assets
UnityBuildManager
Utility for running builds sequence & pushing them to markets & keeping changelog
Stars: ✭ 53 (+112%)
Mutual labels:  assets
web-config
A Rollup configuration to build modern web applications with sweet features as for example SCSS imports, Service Worker generation with Workbox, Karma testing, live reloading, coping resources, chunking, treeshaking, Typescript, license extraction, filesize visualizer, JSON import, budgets, build progress, minifying and compression with brotli a…
Stars: ✭ 17 (-32%)
Mutual labels:  rollup-plugin

rollup-plugin-copy-assets

build status coverage npm version

Copy additional assets into the output directory of your rollup bundle.

Installation

# add with yarn
yarn add --dev rollup-plugin-copy-assets

# or npm
npm install --save-dev rollup-plugin-copy-assets

Usage

// rollup.config.js
import copy from "rollup-plugin-copy-assets";

export default {
  input: "src/index.js",
  output: {
    file: "dist/bundle.js",
    format: "cjs",
  },
  plugins: [
    copy({
      assets: [
        // You can include directories
        "src/assets",
        // You can also include files
        "src/external/buffer.bin",
      ],
    }),
  ],
};

On final bundle generation the provided files will be copied over into the output folder of your rollup bundle, maintaining the original hierarchy and relativity to the input file:

# Source directory structure
src/
- index.js
- assets/
  - some-library-needing-special-treatment.js
- external/
  - buffer.bin

# Output directory structure
dist/
- bundle.js
- assets/
  - some-library-needing-special-treatment.js
- external/
  - buffer.bin

Options

  • assets: (required) An array of paths to copy. Accepts files as well as directories.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].