Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

Export Webpack Configuration File #571

Open
alecmerdler opened this issue Jul 14, 2021 · 1 comment
Open

Export Webpack Configuration File #571

alecmerdler opened this issue Jul 14, 2021 · 1 comment

Comments

@alecmerdler
Copy link

In order to add Cypress component testing to a project, I need access to the webpack.config.js file. There is effectively no way to "eject" a React app generated using nwb (to use create-react-app terminology).

The FAQ tells you how to set the debug flag to view the generated Webpack configuration, but it renders the runtime representation (aka console.log) which contains things like [Function] and cannot be copied. It might be possible for me to re-create the Webpack config file by diving into the nwb codebase, but nwb should be able to simply write out the config file being used so it can be require()-d by other tools.

@mexomagno
Copy link

Hi @alecmerdler! I'm facing the exact same problem 1.5 years after you.
Were you able to find an alternative way of hooking up Cypress component testing to nwb?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants