diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2023-02-10 11:00:43 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2023-02-10 11:00:43 +0530 |
| commit | e674c14b08faae4fb2cb0ebf3c17029667af3c42 (patch) | |
| tree | 60c2136847864939bb05a3c24257f821af184fd8 /config/webpack | |
| parent | b1785a889f337460b29551bc7f85728aefd9df71 (diff) | |
| download | banglar-bhumi-utils-e674c14b08faae4fb2cb0ebf3c17029667af3c42.tar.gz banglar-bhumi-utils-e674c14b08faae4fb2cb0ebf3c17029667af3c42.zip | |
Simplifying require statements for custom made modules in webpack config.
Diffstat (limited to 'config/webpack')
| -rw-r--r-- | config/webpack/plugins/create-manifest-webpack-plugin/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/webpack/plugins/create-manifest-webpack-plugin/index.js b/config/webpack/plugins/create-manifest-webpack-plugin/index.js index 7044be2..2e121da 100644 --- a/config/webpack/plugins/create-manifest-webpack-plugin/index.js +++ b/config/webpack/plugins/create-manifest-webpack-plugin/index.js @@ -4,8 +4,8 @@ const path = require("path"); const scripts = require(path.resolve(process.env.SOURCE_DIR, "scripts.json")); const { version } = require(path.resolve(process.env.ROOT_DIR, "package.json")); -const { getScriptRuntimeFromType } = require(path.resolve(process.env.CONFIG_DIR, "webpack/utils/script-runtime")); -const { getFileNameHash } = require(path.resolve(process.env.CONFIG_DIR, "webpack/utils/file-name-hash")); +const { getScriptRuntimeFromType } = webpackRequire("utils/script-runtime"); +const { getFileNameHash } = webpackRequire("utils/file-name-hash"); class CreateManifestPlugin { constructor() { |
