Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

chore: translate inline system config for plunker #1439

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions tools/plunker-builder/indexHtmlTranslator.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ var _rxRules = {
link: {
from: '/<link rel="stylesheet" href=".*%tag%".*>/',
to: '<link rel="stylesheet" href="%tag%">'
},
system_extra_main: {
from: /main:\s*[\'|\"]index.js[\'|\"]/,
to: 'main: "index.ts"'
},
system_extra_defaultExtension: {
from: /defaultExtension:\s*[\'|\"]js[\'|\"]/,
to: 'defaultExtension: "ts"'
}
};

Expand Down Expand Up @@ -62,6 +70,12 @@ var _rxData = [
},
{
pattern: 'angular_pkg',
},
{
pattern: 'system_extra_main'
},
{
pattern: 'system_extra_defaultExtension'
}
];

Expand Down