Browse Source

tmp include dependencies in dist/

pull/1/head
rozetko 7 years ago
parent
commit
c2f9d2e01b
  1. 18
      server/build/webpack.base.conf.js

18
server/build/webpack.base.conf.js

@ -21,15 +21,15 @@ module.exports = {
filename: "server.js", filename: "server.js",
path: resolve('dist') path: resolve('dist')
}, },
externals: [ // externals: [
function(context, request, callback) { // function(context, request, callback) {
if(request[0] == '.') { // if(request[0] == '.') {
callback(); // callback();
} else { // } else {
callback(null, "require('" + request + "')"); // callback(null, "require('" + request + "')");
} // }
} // }
], // ],
plugins: [ plugins: [
new webpack.optimize.OccurrenceOrderPlugin(), new webpack.optimize.OccurrenceOrderPlugin(),
new webpack.HotModuleReplacementPlugin(), new webpack.HotModuleReplacementPlugin(),

Loading…
Cancel
Save