1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-29 01:30:16 +02:00

lil more finishing

This commit is contained in:
Kushagra Gour
2018-07-03 01:52:00 +05:30
parent 800504e1fd
commit df4b5a749d
3 changed files with 47 additions and 43 deletions

View File

@@ -1076,11 +1076,11 @@ export default class App extends Component {
var fileContent = getCompleteHtml(html, css, js, item, true);
var zip = new JSZip();
// Add an top-level, arbitrary text file with contents
zip.file('index.html', fileContent);
[result[3]].map(externalLib =>
zip.file(externalLib.name, externalLib.code)
);
for (let i = 3; i < result.length; i++) {
const externalLib = result[i];
zip.file(externalLib.name, externalLib.code);
}
console.log('ORIGINAL', this.calculateTextSize(fileContent));