FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
webpack/lib/EvalDevToolModulePlugin.js at master · codeinvain/webpack · GitHub
codeinvain
webpack
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
webpack
/
lib
/
EvalDevToolModulePlugin.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (16 loc) · 674 Bytes
Breadcrumbs
webpack
/
lib
/
EvalDevToolModulePlugin.js
Copy path
File metadata and controls
17 lines (16 loc) · 674 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var
EvalDevToolModuleTemplatePlugin
=
require
(
"./EvalDevToolModuleTemplatePlugin"
)
;
function
EvalDevToolModulePlugin
(
sourceUrlComment
,
moduleFilenameTemplate
)
{
this
.
sourceUrlComment
=
sourceUrlComment
;
this
.
moduleFilenameTemplate
=
moduleFilenameTemplate
;
}
module
.
exports
=
EvalDevToolModulePlugin
;
EvalDevToolModulePlugin
.
prototype
.
apply
=
function
(
compiler
)
{
var
self
=
this
;
compiler
.
plugin
(
"compilation"
,
function
(
compilation
)
{
compilation
.
moduleTemplate
.
apply
(
new
EvalDevToolModuleTemplatePlugin
(
self
.
sourceUrlComment
,
self
.
moduleFilenameTemplate
)
)
;
}
)
;
}
;
Back
|
FazBrowse Home
|
New Git URL