diff --git a/etc/webpack/config.js b/etc/webpack/api-docs/config.js similarity index 98% rename from etc/webpack/config.js rename to etc/webpack/api-docs/config.js index 6a00779c6c..9e1c4ca744 100644 --- a/etc/webpack/config.js +++ b/etc/webpack/api-docs/config.js @@ -26,6 +26,18 @@ 'use strict'; +// ===== // + +// The following content can be edited... + +var resolve = require( 'path' ).resolve; +var BUNDLE_REPORT_PATH = resolve( __dirname, '..', '..', '..', 'build', 'bundle_report.html' ); + + +// == DO NOT EDIT == // + +// The following content likely should not be edited... + const isWsl = require('is-wsl'); const path = require('path'); const webpack = require('webpack'); @@ -470,7 +482,7 @@ module.exports = function(webpackEnv) { new BundleAnalyzerPlugin({ 'analyzerMode': 'static', 'openAnalyzer': false, - 'reportFilename': path.resolve( __dirname, '..', '..', 'build', 'bundle_report.html' ) + 'reportFilename': BUNDLE_REPORT_PATH }), // Generates an `index.html` file with the