All Projects β†’ fansenze β†’ parcel-plugin-url-loader

fansenze / parcel-plugin-url-loader

Licence: MIT license
πŸ“¦url loader for parcel, use base64 encode file

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
HTML
75241 projects
shell
77523 projects

Projects that are alternatives of or similar to parcel-plugin-url-loader

parcel-plugin-prerender
No description or website provided.
Stars: ✭ 42 (+75%)
Mutual labels:  parcel, parcel-plugin
parcel-plugin-externals
Parcel plugin for declaring externals. These externals will not be bundled. πŸ“¦
Stars: ✭ 47 (+95.83%)
Mutual labels:  parcel, parcel-plugin
parcel-vuejs-starterkit
⚑ parcel-bundle + vuejs + vue-router demo
Stars: ✭ 13 (-45.83%)
Mutual labels:  parcel
universal-base64
Small universal base64 functions for node.js and browsers
Stars: ✭ 25 (+4.17%)
Mutual labels:  base64
Powershell-Obfuscator
Powerful script for logical obfuscation of powershell scripts
Stars: ✭ 27 (+12.5%)
Mutual labels:  base64
video-to-markdown
How to embed a video in markdown? Here the answer. Add videos to your markdown files easier.
Stars: ✭ 159 (+562.5%)
Mutual labels:  parcel
tjson.js
JavaScript-compatible implementation of Tagged JSON (TJSON), written in TypeScript.
Stars: ✭ 53 (+120.83%)
Mutual labels:  base64
Base64
Base64 encoding / decoding with SIMD-support, also base64Url
Stars: ✭ 44 (+83.33%)
Mutual labels:  base64
convey
CSV processing and web related data types mutual conversion
Stars: ✭ 16 (-33.33%)
Mutual labels:  base64
parcel-typescript-react
πŸ“¦ Typescriot react perttier example using parcel bundler
Stars: ✭ 15 (-37.5%)
Mutual labels:  parcel
roulier
API for package delivery
Stars: ✭ 18 (-25%)
Mutual labels:  parcel
base64.c
Base64 Library in C
Stars: ✭ 60 (+150%)
Mutual labels:  base64
BeFoR64
BeFoR64, Base64 encoding/decoding library for FoRtran poor men
Stars: ✭ 17 (-29.17%)
Mutual labels:  base64
screenREC
A really simple , ad-free & minimal web based screen recorder πŸ“Ή
Stars: ✭ 67 (+179.17%)
Mutual labels:  parcel
apache-airflow-cloudera-parcel
Parcel for Apache Airflow
Stars: ✭ 16 (-33.33%)
Mutual labels:  parcel
parcel-typescript-example
A minimum TypeScript app with Parcel Bundler.
Stars: ✭ 100 (+316.67%)
Mutual labels:  parcel
Jawbreaker
A Python obfuscator using HTTP Requests and Hastebin.
Stars: ✭ 50 (+108.33%)
Mutual labels:  base64
wxBase64
πŸ—οΈεœ¨ε°η¨‹εΊδΈ­δ½Ώη”¨ js-base64 εΊ“
Stars: ✭ 19 (-20.83%)
Mutual labels:  base64
serverless-plugin-parcel
A Serverless framework plugin to bundle assets with Parcel (ES6/7 or Typescript)
Stars: ✭ 23 (-4.17%)
Mutual labels:  parcel
parcel-examples
Parcel project examples for React, Vue, preact, VanillaJS and jQuery.
Stars: ✭ 26 (+8.33%)
Mutual labels:  parcel

parcel-transformer-url-loader

use base64 encode file in js and css(includes sass/less etc.)

the plugin will unlink file in production(parcel env).

Installation

if you use Parcel 1.x, you should install [email protected].

npm

npm i parcel-transformer-url-loader -D

yarn

yarn add parcel-transformer-url-loader --dev

Usage

define transformers for parcel

you must define glob in .parcelrc to match files for the transformer of parcel-transformer-url-loader.

for example:

// .parcelrc
{
  "extends": "@parcel/config-default",
  "transformers": {
    "*.{png,jpg,jpeg}": ["parcel-transformer-url-loader"]
  }
}

Configuration

✨✨✨ If you have used url-loader in webpack, you'll feel familiar with it.

there is default options in package.json

{
  "parcel-transformer-url-loader": {
    "limit": 10240
  }
}

if you want to have your configuration

you can define "parcel-transformer-url-loader" in you package.json.

for example:

{
  "name": "your project",
  "scripts": {},
  "parcel-transformer-url-loader": {
    "limit": 8888
  }
}
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].