Specifying the Node project directory with webpack dev middleware #1434

Closed
opened 2025-08-09 17:20:07 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @mattwcole on 8/14/2016

I would like to be able to specify the Node project path when using webpack dev middleware to allow Javascript apps to be included from any location e.g.

Host/
  project.json
  Startup.cs
  Program.cs
App/
  package.json
  webpack.config.js
  src/
  node_modules/

At the moment it can't be changed from the content route. I've made what look like the necessary changes in a fork, but ran into another issue packaging the library before I could try it out. Happy to create a pull request if this is deemed useful enough.

*Originally created by @mattwcole on 8/14/2016* I would like to be able to specify the Node project path when using webpack dev middleware to allow Javascript apps to be included from any location e.g. ``` Host/ project.json Startup.cs Program.cs App/ package.json webpack.config.js src/ node_modules/ ``` At the moment it can't be changed from the content route. I've made what look like the necessary changes in [a fork](https://github.com/mattwcole/JavaScriptServices/commit/bd69cb714f5985d1cb59e82d841d807d35787b4e), but ran into [another issue](https://github.com/aspnet/JavaScriptServices/issues/261) packaging the library before I could try it out. Happy to create a pull request if this is deemed useful enough.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1434
No description provided.