menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Parcel

馃摝馃殌 Blazing fast, zero configuration web application bundler

Channels
Team
Posts
Members
Info

Parcel automatically runs all plugins, how to specify not to?

Is there any way to use plugin for serve and not to use one for build?

message-simple
0

#plugin source images to webP.

Do anybody know plugin for parcel v1, that convert (.png, .jpg) images to .webP ?

message-simple
0

Parcel 2 plugin debugging with @parcel/logger

Can someone please provide some guidance on how to debug plugins? console.log does not produce any output, logger.{info, verbose, error} do not produce either. I attempt to log things like this: 鈥

message-simple
3

A bit of guidance

I want to use the hashed class names generated in the css modules process while processing an HTML asset. Is this possible in a parcel plugin. Also, if it is, can you give me any pointers how to go about it?

message-simple
1

WebExtension manifest transformer for Parcel 2?

I tried to make one but it doesn't work: https://github.com/phaux/parcel-transformer-webextension/blob/master/src/WebExtensionTransformer.js When using asset.addURLDependency() it returns some kind of hash instead of a transformed filename. Everything except that works. Only the鈥

message-simple
1

Static CSS-in-JS extraction - Help with Parcel2 plugin

How can this be done in a Parcel 2 plugin? I have it sort of working here in Parcel 1, but it doesn't work entirely. If CSS is set to final: true, things work but the CSS is not processed by PostCSS. If the CSS is not set to final, the CSS is correctly processed but the JS does鈥

message-simple
3

Temporarily disable plugin?

Is there a way to temporarily disable a plugin without having to uninstall it? I have a plugin that generates a service worker but I don't want the service worker to load during development (because it precaches everything).

message-simple
0

Safe to put our own stuff in `Asset.cacheData`?

My asset class is currently putting some data in this.cacheData since it's a property that is copied from workers back to the main process (and I want to be able to access it in my bundler.on('bundled') handler. Is it safe to use cacheData this way?

message-simple
1

Why are assets loaded more than once on initial startup?

Hi, I'm relatively new to Parcel and am working on my first plugin (tslinting TypeScript assets on load): When I run Parcel (and my plugin), every .ts file in my project appears to be loaded twice (i.e., the console output is displayed twice: The "asset is loaded twice" behavior鈥

message-simple
4

Need help: How do I run compass with sass?

Hi, I'm compiling my CSS using sass (.scss). I would like to use the inline-image function provided by compass (http://compass-style.org/). How do I import compass to my parcel project? I can see that SASS is looking for .sassrc config file鈥

message-simple
1