From f11a6cb38abecb99b8d47987473f8eef4812c42c Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Wed, 21 Nov 2018 11:18:01 -0500 Subject: [PATCH] Fix build on Windows Fixes #282. --- webpack.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 1ff4186e..ffa99f8c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -169,7 +169,11 @@ module.exports = function (_, env) { ] }, plugins: [ - new webpack.IgnorePlugin(/(fs|crypto|path)/, /\/codecs\//), + new webpack.IgnorePlugin( + /(fs|crypto|path)/, + new RegExp(`${path.sep}codecs${path.sep}`) + ), + // Pretty progressbar showing build progress: new ProgressBarPlugin({ format: '\u001b[90m\u001b[44mBuild\u001b[49m\u001b[39m [:bar] \u001b[32m\u001b[1m:percent\u001b[22m\u001b[39m (:elapseds) \u001b[2m:msg\u001b[22m\r',