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",
path: resolve('dist')
},
externals: [
function(context, request, callback) {
if(request[0] == '.') {
callback();
} else {
callback(null, "require('" + request + "')");
}
}
],
// externals: [
// function(context, request, callback) {
// if(request[0] == '.') {
// callback();
// } else {
// callback(null, "require('" + request + "')");
// }
// }
// ],
plugins: [
new webpack.optimize.OccurrenceOrderPlugin(),
new webpack.HotModuleReplacementPlugin(),

Loading…
Cancel
Save