|
|
@ -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(), |
|
|
|