webpack-visualizer-plugin
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -40,4 +40,7 @@ 'use strict'; | ||
var stats = compilation.getStats().toJson({ chunkModules: true }); | ||
var html = '<!doctype html>\n <meta charset="UTF-8">\n <title>Webpack Visualizer</title>\n <style>' + cssString + '</style>\n <div id="App"></div>\n <script>window.stats = ' + JSON.stringify(stats) + ';</script>\n <script>' + jsString + '</script>\n '; | ||
var stringifiedStats = JSON.stringify(stats); | ||
stringifiedStats = stringifiedStats.replace(/</g, '<').replace(/</g, '>'); | ||
var html = '<!doctype html>\n <meta charset="UTF-8">\n <title>Webpack Visualizer</title>\n <style>' + cssString + '</style>\n <div id="App"></div>\n <script>window.stats = ' + stringifiedStats + ';</script>\n <script>' + jsString + '</script>\n '; | ||
compilation.assets[_this.opts.filename] = { | ||
@@ -44,0 +47,0 @@ source: function source() { |
{ | ||
"name": "webpack-visualizer-plugin", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"main": "lib/plugin.js", | ||
@@ -5,0 +5,0 @@ "author": "Chris Bateman (http://cbateman.com/)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
311044
1325