Introduction
I wished to copy a famous website that is lingering across Europe where people share their found deals with others and like...
For further actions, you may consider blocking this person and/or reporting abuse
Nice article very helpful !
Did you manage to make font-awesome work with it though ?
I can't get it to work with the "@nuxtjs/fontawesome" package, I followed their setup and it's working in dev but deployed icons do not display.
Actually, they are here but they all have a size of 0x0, it's like some css is missing.
I'd say you have to include the icons you want to use with JavaScript, also depends on the package of icons you want to use, I think there are several types of fa icons available that you have to explicitly define
Yes, I got all the packages there and I can actually go into devtools and make them appear in prod if I change css.
I would expect the package to add the css needed as part of the built assets in client but it's not there.
So I'm not sure what's wrong here, it seems to me that the specific config for firebase shouldn't be an issue.
I've seen they mentionned this css file in another issue where icons were too big in prod.
So I tried adding this in
css: ["@fortawesome/fontawesome-svg-core/styles.css"]
innuxt.config.js
but no luck either.I don't understand why this is not working the nuxtjs doc clearly says you can include global css this way and the css file has the classes that I'm missing.
I think you could find an okay article about this here: medium.com/@kozyreva.hanna/nuxt-js...
Should the publicPath actually be a property of the build object?:
const config = {
...nuxtConfig,
dev: false,
debug: false,
buildDir: ".nuxt",
build: {
**publicPath: "public" <--- this property
}
};
I will have to get back to you on this one, I might have changed this, but check the repo I think it should be up to date.
The function is looking for 3rd party libraries used in client.
Could you specify which function are you talking about and if that is a problem, and if so, what difficulties does it cause? Thanks
The
functions/index.js
I got the same content as yours and when I try to deploy it and open in a browser it gives me this errorFATAL Cannot find module '@nuxtjs/axios'
. And this is my
nuxt.config.js
pastebin.com/LvxBi1yCDid you build it with the non scripts provided in the src directory? Everything should be done with those scripts. If there are some missing dependencies it means the package.json may be missing something in functions directory.
So do I have to add all of the 3rd party libraries installed inside the
src/package.json
into myfunctions/package.json
?module nuxt-start is nothing?
Nice. But it's not in English
That's true, I'll have to introduce multiple languages. It's in Lithuanian right now.
Nice blogpost, but why is it so painfully slow?
It is because the cold start of firebase functions
Those predeploy scripts won't work on windows (I just tried implementing another nuxt/firebase tutorial article that used the same commands). Can you please add windows equivalents of the scripts?
The commands are for linux? I'm having issues, i'm developing via Windows Visual Studio Code, how would I achieve this on Windows?