Simplify the disabling of Node polyfills, in gulpfile.js, since we're now using Webpack 3.x

Webpack was updated a while back, but we apparently forgot to update `gulpfile.js` as well.
This commit is contained in:
Jonas Jenwald 2017-09-29 21:42:31 +02:00
parent b3f8411264
commit 1a3c6f7d9a

View File

@ -168,17 +168,7 @@ function createWebpackConfig(defines, output) {
},
// Avoid shadowing actual Node.js variables with polyfills, by disabling
// polyfills/mocks - https://webpack.js.org/configuration/node/
node: {
console: false,
global: false,
process: false,
__filename: false,
__dirname: false,
Buffer: false,
setImmediate: false,
},
// If we upgrade to Webpack 3.0+, the above can be replaced with:
// node: false,
node: false,
};
}