Skip to content

Commit

Permalink
Breaking: Posibility to change url
Browse files Browse the repository at this point in the history
  • Loading branch information
morriq committed Mar 22, 2019
1 parent d319494 commit 04bcaa3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ const { join } = require('path');
const { RawSource } = require('webpack-sources');

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

Expand Down

0 comments on commit 04bcaa3

Please sign in to comment.