Skip to content

Commit

Permalink
tentative fix prod webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 committed Jan 18, 2024
1 parent 976ac7a commit c5599be
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion prod-webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const paths = {
code: [path.join(__dirname, "js"), path.join(__dirname, "MapStore2", "web", "client")]
};

module.exports = require('./MapStore2/build/buildConfig')(
const cfg = require('./MapStore2/build/buildConfig')(
{
'MapStore-C179': path.join(__dirname, "js", "app"),
'MapStore-C179-embedded': path.join(__dirname, "js", "embedded"),
Expand Down Expand Up @@ -74,3 +74,21 @@ module.exports = require('./MapStore2/build/buildConfig')(
"@js": path.resolve(__dirname, "js")
}
);


cfg.resolve.fallback = {
"fs": false,
"tls": false,
"net": false,
"path": false,
"buffer": require.resolve("buffer/"),
"util": require.resolve("util/"),
"zlib": false,
"http": false,
"https": false,
"stream": false,
"crypto": false/* ,
"crypto-browserify": require.resolve('crypto-browserify'), //if you want to use this module also don't forget npm i crypto-browserify */
};

module.exports = cfg;

0 comments on commit c5599be

Please sign in to comment.