Corrected Webpack configuration in JavaScript documentation

This commit is contained in:
Adarsh Bhat 2020-10-16 11:41:38 -07:00
parent 9e64dfc6e9
commit 4ba08c82dd
1 changed files with 1 additions and 1 deletions

View File

@ -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!