Currently, I import scss files like this:
@import './node_modules/bulma/bulma';
However, in Laravel Mix I learned that I could just import the files like this, without specifying ./node_modules:
@import '~bulma/bulma';
Anyway I could do this in…
I'm getting this error when I deploy my parcel.js to Vercel:
@parcel/core: No transformers found for static/actions.glb.
Here's the full deployment logs from Vercel:
Detected package.json
Installing dependencies...
Detected `package-lock.json`…
This is the first time I am using ParcelJS. I npm it following their instruction everything looks good. So it would be the latest version. As soon as I run it against my project (a .html file with some js and css attached to it), I get this…
I'm making a project with parcel and typescript. It works great, but for one library I'm using, I would need to host a bunch of .json-files at a fixed directory:
The files look as following:
index.html
index.ts
tiles/
| file.json
| file0.json
|…
After I've deleted couple files from project that uses Parcel bundler, command parcel ./index.html started to output following error:
Cannot read property 'type' of undefined
at Bundler.createBundleTree…
I am trying to parcel my nodejs app which uses epxress and ejs but I am getting a parcel error during the process
My app already runs as expected if I use the standard way:
node app.js
However, when I try to run it with parcel I am getting an…
I'm migrating from Webpack to Parcel and I use folder aliases like this in my component:
import * as authActions from 'actions/authActions';
I get this error: Cannot find module 'actions/authActions'
The weird thing is, it only shows when using…
I'm trying to expose a variable when building with Parcel.js, similar to the Webpack DefinePlugin but I haven't found out how to do it.
In development I want my API host to be different from my production one,…
I'd like to import HTML files as a string with ParcelJS, like this:
import testHTML from './testHTML.html';
document.body.insertAdjacentHTML('afterbegin', testHTML);
But the docs say:
Importing HTML in JavaScript does not statically include the…
I am using Parcel to bundle my project and jest to run my tests.
Everything works fine, but on tests that I have the async/await keyword, I had to import regenerator-runtime/runtime
Like this:
import "regenerator-runtime/runtime"
test("read armored…
I'm using parcel.js to build a basic static website (so HTML, CSS and front end JS only, but node / npm / parcel.js used for building).
I'd like to set a favicon. What's the best / simplest way to do this?
Is it possible to bundle external resources linked with absolute URLs to the dist folder with Parcel?
This bundles and hashes fine
to
What i'd like to do
I am currently migrating as React project built with Webpack into Parcel as an experiment to see what the hype is all about. The project uses Reactstrap, which has Bootstrap as a dependency.
I have a main.tsx file that is the "shell" for most of the…