pull/3347/head
filip mertens 2 years ago committed by Aniket
parent e23799d0f6
commit 1f15ba165c
  1. 1
      apps/remix-ide/src/app/plugins/remixd-handle.tsx
  2. 19
      apps/remix-ide/webpack.config.js
  3. 1
      package.json
  4. 8
      yarn.lock

@ -3,6 +3,7 @@ import React, { useRef, useState, useEffect } from 'react' // eslint-disable-lin
import isElectron from 'is-electron'
import { WebsocketPlugin } from '@remixproject/engine-web'
import * as packageJson from '../../../../../package.json'
// eslint-disable-next-line @nrwl/nx/enforce-module-boundaries
import { version as remixdVersion } from '../../../../../libs/remixd/package.json'
import { PluginManager } from '@remixproject/engine'
import { AppModal, AlertModal } from '@remix-ui/app'

@ -5,6 +5,7 @@ const CopyPlugin = require("copy-webpack-plugin");
const version = require('../../package.json').version
const fs = require('fs')
const TerserPlugin = require("terser-webpack-plugin");
const CompressionPlugin = require("compression-webpack-plugin");
const versionData = {
version: version,
@ -74,18 +75,22 @@ module.exports = composePlugins(withNx(), withReact(), (config) => {
new TerserPlugin({
parallel: true,
terserOptions: {
ecma: 6,
compress: {
drop_console: true,
},
output: {
comments: false,
},
ecma: 2015,
compress: true,
},
extractComments: false,
}),
];
// add compression plugin
config.plugins.push(
new CompressionPlugin({
test: /\.js(\?.*)?$/i,
filename: '[path][base].gz',
})
)
console.log(config)

@ -278,6 +278,7 @@
"colors": "^1.4.0",
"colors-browserify": "^0.1.1",
"component-type": "^1.2.1",
"compression-webpack-plugin": "^10.0.0",
"constants-browserify": "^1.0.0",
"copy-to-clipboard": "^3.3.1",
"copy-webpack-plugin": "^11.0.0",

@ -9803,6 +9803,14 @@ compressible@~2.0.16:
dependencies:
mime-db ">= 1.43.0 < 2"
compression-webpack-plugin@^10.0.0:
version "10.0.0"
resolved "https://registry.yarnpkg.com/compression-webpack-plugin/-/compression-webpack-plugin-10.0.0.tgz#3496af1b0dc792e13efc474498838dbff915c823"
integrity sha512-wLXLIBwpul/ALcm7Aj+69X0pYT3BYt6DdPn3qrgBIh9YejV9Bju9ShhlAsjujLyWMo6SAweFIWaUoFmXZNuNrg==
dependencies:
schema-utils "^4.0.0"
serialize-javascript "^6.0.0"
compression@^1.7.4:
version "1.7.4"
resolved "https://registry.yarnpkg.com/compression/-/compression-1.7.4.tgz#95523eff170ca57c29a0ca41e6fe131f41e5bb8f"

Loading…
Cancel
Save