Replies: 1 comment
-
I did by using the dynamic import + glob imports for the vue files. // .parcelrc
{
"extends": "@parcel/config-default",
"resolvers": [
"@parcel/resolver-glob",
"..."
]
} // app.js
import * as vues from './pages/**/*.vue';
{
resolve: name => {
let page;
for (const property of name.split('/')) {
page = !page ? vues[property] : page[property];
};
if (page) page = page.default;
return page;
},
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
I am trying to get Parcel working with Inertia on a Laravel Project I have.
It's kinda not detecting the .vue files I have, so when I go to the browser, I see it requesting the .vue files in the browser.
I have an app.ts file as the entrypoint of my application as you can see below:
As you can see there's a scss file above, so Parcel automagically installs the required package to deal with sass files, but it does not do the same for the vue ones meaning it may not be detecting them.
May you guys help me?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions