Gathering detailed insights and metrics for rollup-plugin-rebase
Gathering detailed insights and metrics for rollup-plugin-rebase
Gathering detailed insights and metrics for rollup-plugin-rebase
Gathering detailed insights and metrics for rollup-plugin-rebase
npm install rollup-plugin-rebase
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
59 Stars
499 Commits
12 Forks
5 Watching
8 Branches
4 Contributors
Updated on 15 Jul 2024
Minified
Minified + Gzipped
JavaScript (96.31%)
CSS (2.38%)
SCSS (1.31%)
Cumulative downloads
Total Downloads
Last day
-3.6%
295
Compared to previous day
Last week
43.4%
3,091
Compared to previous week
Last month
-31.4%
10,123
Compared to previous month
Last year
128.4%
61,325
Compared to previous year
10
The Rollup Rebase Plugin copies static assets as required from your JavaScript code to the destination folder and adjusts the references in there to point to the new location. It also respects assets referenced from your CSS/SCSS files.
@import
via PostCSS Import into the origin files.The plugin is meant as a tool for preparing a library for being published. In this it differs from plugins like Rollup URL Plugin as it is designed for usage in libraries and not for applications. The output of this plugin can be used by tools like Webpacks File Loader, URL Loader or the already mentioned Rollup URL Plugin.
1$ npm install --save-dev rollup-plugin-rebase
or
1$ yarn add --dev rollup-plugin-rebase
You can configure Rollup Rebase as part of your Rollup configuration. This can be either done in a rollup.config.js
or by scripting using the Rollup API:
1import { rollup } from "rollup" 2import rebasePlugin from "rollup-plugin-rebase" 3 4async function config() { 5 const bundle = await rollup({ 6 input: "./src/index.js", 7 plugins: [rebasePlugin()] 8 }) 9 10 await bundle.write({ 11 dest: "./lib/index.js" 12 }) 13} 14 15config()
assetFolder
: When set assets are placed inside a sub folder with that name.keepName
: If true
, generated filenames will be ${filename}~${hash}.${ext}
instead of just ${hash}.${ext}
verbose
: If true
, increases log levelinclude
: Standard include option for rollup plugins.exclude
: Standard exclude option for rollup plugins.Copyright 2016-2022
Sebastian Software GmbH
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
23 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More