Greetings. There is a system that runs on IIS. We need to add a Webpack to work with the front-end. Accordingly, it is necessary to put Node.js. For testing, I write a standard http-server. But in conjunction with IIS, it does not work (on any port the browser does not give anything). Tell me, please, how to properly organize their joint work? Or maybe there are ready-made options for Webpack? Or is there a convenient option for other "collectors"? Thank.
- oneYou overcomplicate. You need a node as a runtime for the webpack, not as an http server. If you need to have a separately configured web server for development, then you don’t need to write anything, but you can proxy webpack-dev-server to your iis. - Duck Learns to Hide
- That is, I understand correctly that the original task is to just make a webpack with the client part of the .net project? If yes, I can tell you how I have done it now - Duck Learns to Hide
- I would be very grateful to you, because in terms of working with assemblers, I am a beginner, and the experience of a knowledgeable person would be useful. Only this is not a .Net project. The system is called OpetText, the server part is there in its own language, everything is spinning on IIS, and you just need to fasten the Webpack to the client part of the system (although any other collector is possible). Thank. - Alexander
- I do not know your specifics to help you, in .net projects there is just one obsolete mechanism that prevents you from doing it simply, plus the adventures with the studio so that you can do it with one button. And the point is just to make the js file a collector and connect it to the page. - Duck Learns to Hide
- And in order to be debugged with iis, you either need to carefully read the documentation for the webpack-dev-server and organize proxying, or re-compile the bundle with the handles each time a new file is added, and for debugging without this, simply launch the webpack editor. Well, that is, a webpack is a thing that converts one js to another js. It does not need to work in raintime except for development purposes. - Duck Learns to Take Cover
|