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…
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…
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…
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…
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":…
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":…
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…
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,…
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…
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…
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:…
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:…
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":…
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…