From 4ba08c82dde37815baf1f3e44f45ebc46029fc8d Mon Sep 17 00:00:00 2001 From: Adarsh Bhat Date: Fri, 16 Oct 2020 11:41:38 -0700 Subject: [PATCH] Corrected Webpack configuration in JavaScript documentation --- doc/javascript-target.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/javascript-target.md b/doc/javascript-target.md index 57693bef5..f03b2aeef 100644 --- a/doc/javascript-target.md +++ b/doc/javascript-target.md @@ -68,7 +68,7 @@ The steps to create your parsing code are the following: You are now ready to bundle your parsing code as follows: - following webpack specs, create a webpack.config file - - in the `webpack.config` file, exclude node.js only modules using: `node: { module: "empty", net: "empty", fs: "empty" }` + - in the `webpack.config` file, exclude node.js only modules using: `resolve: { fallback: { fs: false } }` - from the cmd line, navigate to the directory containing webpack.config and type: webpack This will produce a single js file containing all your parsing code. Easy to include in your web pages!