Questions tagged [parceljs]

Blazing fast, zero configuration web application bundler

Official website

https://parceljs.org/

682 questions
6
votes
3 answers

Adding Autoprefixer in parcel.js for deployed website broke all website styles?

I have a deployed project built with the Parcel.js bundler. After applying CSS Autoprefixer and redeploying the website almost all of my website's styles are broken. I'm really not sure what has caused this and unfortunately I could not find even…
Ikai Yanasaki
  • 139
  • 2
  • 7
6
votes
2 answers

Why do I get a "df.worker.min.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type"

I try to use pdfjs in a small typescript app with parceljs as bundler, but when I load the worker with: pdfjsLib.GlobalWorkerOptions.workerSrc = '../../node_modules/pdfjs-dist/build/pdf.worker.min.js'; I get this error in the Firefox…
Jørgen Rasmussen
  • 1,143
  • 14
  • 31
6
votes
2 answers

chrome 72 changes sourcemap behaviour

I'm developing a Webextension for Chrome, the code is written in Typescript, so I need sourcemaps. The extension is bundled with ParcelJS, but I believe that my problem is not related to the bundler. After updating from Chrome 70 to 72, sourcemaps…
6
votes
3 answers

post css autoprefixer issue on parcel not showing prefixes

Autoprefixer not working on parcel 1.9.7: I have my src folder and I have .postcssrc file and styles file in the same folder content inside the .postcssrc file: { "plugins": { "autoprefixer": true } } parcel was installed with npm install -g…
user9013856
  • 328
  • 2
  • 10
6
votes
1 answer

Parcel Bundler - handle scss without resolving any urls in my sass

It's great that ParcelJS just handles sass out of the box but I'm running into a problem where it keeps throwing an exception when it encounters a url within in my scss file. I guess Parcel is trying to locate the resource and rewrite the url. I…
Francisc0
  • 968
  • 1
  • 14
  • 28
5
votes
0 answers

parcel can't resolve bundle using dynamic import

I am using Parcel to bundle my Javascript files. Everything works fine when using the localhost server to test out the build, however in production it doesn't like dynamic imports. Here is the code snippet that I am importing: if (condition) { …
justanotherguy
  • 395
  • 4
  • 17
5
votes
3 answers

Parcel.js says to add the type="module" attribute to the