Commit 49ef0dce authored by gxkai's avatar gxkai

fix: slim

parent b12a6134
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -147,10 +147,10 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
let allVersions = [{ path: 'builtin', longVersion: 'latest local version - ' + state.defaultVersion }]
// fetch normal builds
// const binRes: any = await promisedMiniXhr(`${baseURLBin}/list.json`)
const binRes: any = require('./binRes.json')
const binRes: any = await promisedMiniXhr('assets/json/binRes.json')
// fetch wasm builds
// const wasmRes: any = await promisedMiniXhr(`${baseURLWasm}/list.json`)
const wasmRes: any = require('./wasmRes.json')
const wasmRes: any = await promisedMiniXhr('assets/json/wasmRes.json')
if (binRes.event.type === 'error' && wasmRes.event.type === 'error') {
selectedVersion = 'builtin'
return callback(allVersions, selectedVersion)
......
This diff is collapsed.
......@@ -61,6 +61,7 @@
"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",
"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",
"fix-memory-limit": "cross-env LIMIT=4096 increase-memory-limit",
"nightwatch_parallel": "npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js --env=chrome,firefox",
"nightwatch_local_firefox": "npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js --env=firefox",
......@@ -291,6 +292,7 @@
"typescript": "^4.4.3",
"uglify-js": "^2.8.16",
"watchify": "^3.9.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpackbar": "^5.0.2",
"webworkify-webpack": "^2.1.5",
"worker-loader": "^2.0.0",
......
......@@ -89,7 +89,8 @@
"styles": [],
"scripts": [],
"webpackConfig": "apps/remix-ide/webpack.config.js",
"maxWorkers": 2
"maxWorkers": 2,
"statsJson": true
},
"configurations": {
"production": {
......
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