npm i --save-dev rollup-plugin-url Usage import{rollup}from"rollup" importurlfrom"rollup-plugin-url" constwriteoptions={dest:"output/output.js"} constplugin=url({ limit:10*1024,//inline files < 10k, copy files > 10k include:["**/*.svg"],//defaults to .svg, .png, .jpg and .gif...
if(property==='url'){ return`'file://${chunk.moduleId}'`; } }, }); Readme Keywords none Install npm irollup-plugin-import-meta-url Repository github.com/TeleworkInc/rollup-plugin-import-meta-url Homepage github.com/TeleworkInc/rollup-plugin-import-meta-url#readme ...
npm install @rollup/plugin-url --save-dev Usage Create arollup.config.jsconfiguration fileand import the plugin: importurlfrom'@rollup/plugin-url';exportdefault{input:'src/index.js',output: {dir:'output',format:'cjs'},plugins: [url()] }; Then callrollupeither via theCLIor theAPI. With...
npm install --save-dev rollup-plugin-url-import Usage // rollup.config.js import urlImport from 'rollup-plugin-url-import' export default { input: 'input.js', output: { file: 'output.js', format: 'esm' }, plugins: [ urlImport() ] } // input.js import 'https://deno.land/thum...
Code Folders and files Name Last commit message Last commit date Latest commit shellscape chore: add moved notice Nov 26, 2019 a30d47b·Nov 26, 2019 History 59 Commits src drop node 8 maintenance Oct 8, 2019 test fix: npm audit fix, update dependencies, bump rollup to 1.15.1 ...
import__asset_png__from"path/to/asset.png";constimgUrl=newURL(__asset_png__,import.meta.url||document.baseURI||self.location.href); Installation npm i rollup-plugin-import-meta-url-to-module Usage vite.config.js: importurlToModulefrom'rollup-plugin-import-meta-url-to-module';exportdefault...
npm i -D rollup-plugin-base-url Usage import{baseUrl}from'rollup-plugin-base-url';exportdefault{input:'index.js',plugins:[baseUrl({url:'/forum',// the base URL prefix; optional, defaults to /staticImports:true,// also rebases static `import _ from "…"`; optional, defaults to false...
Allows dynamic imports to be loaded from an absolute URL, such as `/` - rollup-plugin-base-url/package-lock.json at main · kim366/rollup-plugin-base-url
chore(deps-dev): bump @rollup/plugin-commonjs from 28.0.1 to 28.0.2 #667 Open dependabot wants to merge 1 commit into main from dependabot/npm_and_yarn/rollup/plugin-commonjs-28.0.2 Open chore(deps-dev): bump @rollup/plugin-commonjs from 28.0.1 to 28.0.2 #667 dependabot...
chore: upgrade picomatch (#1775) Commits 0f45234chore(release): commonjs v28.0.1 dd1deeechore(commonjs): upgrade picomatch (#1775) See full diff incompare view Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manu...