Questions tagged [parceljs]

Blazing fast, zero configuration web application bundler

Official website

https://parceljs.org/

682 questions
0
votes
1 answer

How do I exchange data between .pug file and a linked .js file without Node?

Is it possible to pass data from a .js file to a .pug file without using Node? I'm using a very basic setup where I run and bundle my project with Parcel.js. I'm not using a Node.js backend with Express and I do not aspire to. I simply want to be…
holy_kiwi
  • 1
  • 1
0
votes
1 answer

How do I resolve Parcel/optimizer-image error

Hi there everyone! I'm trying to build my internet files into a format that is optimized for the internet, but when I tried to build it using npm run build, it gave me the above error message even though I have mainly jpegs and png files that were…
0
votes
1 answer

Using Parceljs, How to prevent jquery and bootstrap minimization on web extension packaging

I am using the @parcel/transformer-webextension transformer and having good success with it. I have one issue I'm trying to resolve. Firefox is not happy. I reference jquery and bootstrap from the index page of my pop-up and options pages. I…
jlo
  • 1,121
  • 1
  • 11
  • 16
0
votes
1 answer

How do you get parcel to open in a specific browser of my choice?

My parcel bundler opens up in default MS edge but i want it open local host in firefox.
user14868233
0
votes
1 answer

Parcel Bundler beautify, lint, and create .min.js

I'm new the world of automating/testing/bunding with JS and I've got parcel setup for the most part but I noticed that when it builds files, it does not actually save them with the .min.js part in the file name. I'm wondering if theres a way to do…
Uriahs Victor
  • 1,049
  • 14
  • 32
0
votes
1 answer

Can I use the Parcel.JS bundler when setting up Firebase on my Javascript application?

So I'm trying to connect my Javascript application to Firebase. I understand that I need to use a bundler to do this, and my preferred method is Parcel.JS. I run my Parcel.JS script with the following code in my package.json file: "main":…
Chris Clark
  • 488
  • 2
  • 19
0
votes
1 answer

Parcel renders a 404 page

I've a typescript project I'm migrating from react-script to parcel. However after running parcel, the project builds, but the url renders a 404 page not found html... Here are the config files : package.json : { "name": "my-project", "version":…
Cromm
  • 328
  • 6
  • 25
0
votes
0 answers

Hot module replacement not working in Parcel bundler

I set up Parcel and it's working great for hot module replacement of html files when I hit Save (I have 2 html files - index.html and snake.html). I am using SASS and SASS modules using @use. However, it is only auto-refreshing index.html when I…
Espskully
  • 97
  • 1
  • 2
  • 10
0
votes
1 answer

Using ESLint with Parcel, React, and ES6 class properties without babelrc

I am trying to setup ESLint, React, Parcel to work together. Also I don't have babelrc setup since Parcel handles that internally. Everything works fine except that I can't figure out how to stop ESLint from complaining about valid ES6 imports,…
Pratik Mehta
  • 2,037
  • 2
  • 14
  • 19
0
votes
2 answers

Glob import returns empty module in Parcel

I use Parcel for its speed but I have a little problem. The Glob resolver just ignores the folder content. I need import all content from folder /documents which contains PDF & HTML files. So I tried: import * Docs from…
Tomáš Wróbel
  • 658
  • 3
  • 12
0
votes
1 answer

Parcel build command throws an error when trying to compile

When i run "npm run dev" it works like a charm, but when i start "npm run dev", this is what happens. I have parcel,sass and yeoman. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! parcel-sass-boilerplate@1.0.0 build: `parcel build…
Niko xD
  • 31
  • 4
0
votes
1 answer

How to import all images from folder in JS?

I have 1000 images in folder and I have to import all those images to project. I tried this: import images from './img/*.jpg It works just fine on localhost but when I try to deploy it on remote server it throws an error: Build failed. 8:44:50 AM:…
0
votes
1 answer

Build of Parcel React App fails on Heroku

I am trying to deploy a parcel react app, with no backend on Heroku. The build keeps failing, I have tried everything on the internet. Here is the script & dependencies. Here is the error. Error: lscpu: failed to determine number of CPUs:…
Krishna
  • 55
  • 1
  • 1
  • 5
0
votes
1 answer

Netlify deployment

I am trying to deploy a git repo on Netlify and I am using parcel in the project. I am getting the error in the photo about conflicting local requirement. This is how my dependencies and devDependencies look like: "dependencies": { "axios":…
AmAm
  • 21
  • 3
0
votes
1 answer

How to manage package for workflow with Google clasp using Parcel or Webpack

For Google appsscript, you need a single client side html file that includes the client side script and style in 1 file. Can webpack, or parcel do this? I saw a 2 year old video where it was working in parcel version 1, with the parcel-inline, but…
kztd
  • 3,121
  • 1
  • 20
  • 18