![]() Can be done how require.js has done to run on node.js server. Compiled server.js file without any node_modules included.Īs I've noticed in #135 making a bundled server.js will mess up with all the io operation file paths.Ī better idea would be to leave node.js server files as they are, but replace the require method provided with a custom webpack require which takes in account configurations such as aliases (others?).So I don't want my win files to go on a unix server). 2nd: is bad, because node_modules are compiled based on platform. In this way when the server starts it will use node_modules from the node_modules folder instead of a minified js file (Why? 1st: it doesn't work. I was thinking about making a bundle of all the server part without any file from node_modules. I need to be able to use the webpack aliases. What I need (read the What I need updated section) Will fail in pure node.js because can't find the app folder.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |