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:
@@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user