Commit a10696ed authored by guxukai's avatar guxukai

fix: windows打不开压缩文件

parent 39689687
......@@ -263,7 +263,7 @@ export const uploadFile = async (target, targetFolder: string, cb?: (err: Error,
// pick that up via the 'fileAdded' event from the files module.
async function iterator (files) {
await Promise.all(Array.from(files).map(async (file: File) => {
alert('fileType:::' + file.type)
console.error('fileType:::' + file.type)
// 'application/x-zip-compressed' win
// 'application/zip' mac
if (
......
......@@ -58,7 +58,8 @@
"make-mock-compiler": "node apps/remix-ide/ci/makeMockCompiler.js",
"minify": "uglifyjs --in-source-map inline --source-map-inline -c warnings=false",
"preinstall": "sudo npm install -g node-gyp --allow-root --unsafe-perm",
"build:dev": "NODE_ENV=production node --max-old-space-size=4096 node_modules/@nrwl/cli/bin/nx.js build remix-ide --buildLibsFromSource --prod --baseHref=/ide/ --skip-nx-cache --parallel=3",
"build:dev": "NODE_ENV=production node --max-old-space-size=4096 node_modules/@nrwl/cli/bin/nx.js build remix-ide --buildLibsFromSource --baseHref=/ide/ --skip-nx-cache --parallel=3",
"build:test": "NODE_ENV=production node --max-old-space-size=4096 node_modules/@nrwl/cli/bin/nx.js build remix-ide --buildLibsFromSource --skip-nx-cache --parallel=3",
"serve:dev": "npx http-server ./dist/apps/remix-ide",
"deploy:dev": "./deploy.sh 172.22.17.165",
"analyze": "webpack-bundle-analyzer dist/apps/remix-ide/stats.json",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment