We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d319494 commit 04bcaa3Copy full SHA for 04bcaa3
index.js
@@ -2,11 +2,9 @@ const { join } = require('path');
2
const { RawSource } = require('webpack-sources');
3
4
class MicroservicesWebpackPlugin {
5
- constructor(
6
- modules
7
- ) {
8
- this.modules = modules || [];
9
- this.url = 'https://unpkg.com/:name@:version/:path';
+ constructor(config = {}) {
+ this.modules = config.modules || [];
+ this.url = config.url || 'https://unpkg.com/:name@:version/:path';
10
this.paramsRegex = /:([a-z]+)/gi;
11
this.node_modules = join(process.cwd(), 'node_modules');
12
0 commit comments