Webpack alias doesn't seem to be working
-
I added the config below to quasar config as specified on the docs and cli is saying it cannot find these aliases. It’s worked for me previously but in this project it isn’t working. I’m very stumped, is my config correct?
cfg.resolve.alias = { ...cfg.resolve.alias, components: path.resolve(__dirname, "./src/components"), api: path.resolve(__dirname, "./src/api"), store: path.resolve(__dirname, "./src/store") };
-
@emobe looks good unless thats not on the proper
quasar.conf.js>build
prop, https://quasar.dev/quasar-cli/handling-webpack#Adding-Webpack-aliases -
@metalsadman jeez that was the problem. It was in electron and not build. Didn’t even think to check that, thanks a lot
-
@emobe docs is awesome, i always have a tab open :).