catamphetamine / universal-webpack

Isomorphic Webpack: both on client and server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to handle externals in server build

cyberwombat opened this issue · comments

From what I gather this library will make all server modules "externals" yes? My server build file now contains references such as:

/*!*****************************************!*\
  !*** external "server/components/Html" ***!
  \*****************************************/
/***/ function(module, exports) {
  module.exports = require("server/components/Html");
/***/ },

That it cannot resolve as server/components/Html doesn't exist in the build directory. Ive peeked at the sample repo but could not locate how to handle this. What is the recommended process to get these files build or integrated with the server build?

Thanks