Skip to content

Commit 04bcaa3

Browse files
committed
Breaking: Posibility to change url
1 parent d319494 commit 04bcaa3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ const { join } = require('path');
22
const { RawSource } = require('webpack-sources');
33

44
class MicroservicesWebpackPlugin {
5-
constructor(
6-
modules
7-
) {
8-
this.modules = modules || [];
9-
this.url = 'https://unpkg.com/:name@:version/:path';
5+
constructor(config = {}) {
6+
this.modules = config.modules || [];
7+
this.url = config.url || 'https://unpkg.com/:name@:version/:path';
108
this.paramsRegex = /:([a-z]+)/gi;
119
this.node_modules = join(process.cwd(), 'node_modules');
1210

0 commit comments

Comments
 (0)