Skip to content
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.

How to reference a node_module in the compiled bundle #41

Open
mjangir opened this issue Sep 6, 2018 · 0 comments
Open

How to reference a node_module in the compiled bundle #41

mjangir opened this issue Sep 6, 2018 · 0 comments

Comments

@mjangir
Copy link

mjangir commented Sep 6, 2018

In my electron project, I've an internal node_modules folder whose all dependencies have been under externals in webpack and they are directly reference by var dep = require('dep'). When the webpack script is run in prod mode, a physical built file is generate that can easily reference the dependencies from any available node_modules.

But in webpack dev mode, I'm using html-webpack-plugin, which creates html file in memory and it never references those externals.

I want to specify that node_modules to this plugin so that all un-resolved dependencies can be looked into this folder as well.

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

1 participant