adopt web extensions to webpack 5

This commit is contained in:
Martin Aeschlimann
2021-07-08 21:41:03 +02:00
parent a3e07245ee
commit 7ebe6a6054
51 changed files with 552 additions and 277 deletions

View File

@@ -19,10 +19,11 @@ const config = withDefaults({
output: {
filename: 'jsonServerMain.js',
path: path.join(__dirname, 'dist', 'node'),
}
},
plugins: [
...withDefaults.getNodePlugins(__dirname), // add plugin, don't replace inherited
new webpack.IgnorePlugin({ contextRegExp: /vertx/})
]
});
// add plugin, don't replace inherited
config.plugins.push(new webpack.IgnorePlugin({ resourceRegExp: /vertx/ })); // request-light dependency
module.exports = config;