Skip to content

Commit

Permalink
remove lowercase transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
TrilipuT authored and swashata committed Oct 27, 2019
1 parent 23b015c commit da2b87a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion e2e/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<title>Document</title>
<script type="text/javascript">
/* Needed for dynamic publicPath */
window.__wpackIowpackioetoedist = 'http://localhost:5000/wp-content/plugins/e2e-plug/dist/';
window.__wpackIowpackioEToEdist = 'http://localhost:5000/wp-content/plugins/e2e-plug/dist/';
</script>
</head>

Expand Down
2 changes: 1 addition & 1 deletion e2e/prod.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<title>Document</title>
<script type="text/javascript">
/* Needed for dynamic publicPath */
window.__wpackIowpackioetoedist = '/dist/';
window.__wpackIowpackioEToEdist = '/dist/';
</script>

</head>
Expand Down
4 changes: 1 addition & 3 deletions packages/entrypoint/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ declare const window: { [x: string]: any };

// We would override __webpack_public_path__ only if __WPACKIO__ webpack plugin is set
if (__WPACKIO__) {
const path = (__WPACKIO__.appName + __WPACKIO__.outputPath)
.toLowerCase()
.replace(/[^a-z0-9_\-]/g, '');
const path = (__WPACKIO__.appName + __WPACKIO__.outputPath).replace(/[^a-z0-9_\-]/g, '');
// eslint-disable-next-line no-global-assign
__webpack_public_path__ = window[`__wpackIo${path}`] as string;
}

0 comments on commit da2b87a

Please sign in to comment.