Article From:https://segmentfault.com/q/1010000009831255
Question:

resolved

Hello, everybody! The details are as follows:

staywebpackPackangularWhen, if, ifangularIntroduce the imagefspathSuch a node module, thenwebpackWhat is the packaging mechanism? Is there a preparation method that allowswebpackDo not pack the modules and save themrequireHow about the way to introduce it? The following diagram can be provedfsThe module can be inconsoleIntroduced, but when the code is packaged, it will prompt.fsThe module can’t be found.

If you know or have encountered similar problems, thank you very much for your help.

Answer 0:

webpack target Set toelectron-renderthat will do

https://github.com/webpack/webpack.js.org/blob/master/content/configuration/target.md

Answer 1:

Hello, how do you solve this problem?

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *