139
rated 0 times
[
146]
[
7]
/ answers: 1 / hits: 16198
/ 9 Years ago, sat, january 23, 2016, 12:00:00
I need to import a library to my project, the library should is a javascript file, which need to be inlined to html.
for example:
library code:
(function(){
var a = 0;
})();
I need to make this code inline in html.
html:
<html>
<head>
<script>
(function(){
var a = 0;
})();
</script>
</head>
<body>
</body>
</html>
can I implement this with webpack?
I find script-loader, but it run the script, not make it inline.
More From » webpack