Merge pull request #2378 from poanetwork/performance-js-css

Page performance: exclude moment.js localization files except EN, remove unused css
pull/2381/head
Victor Baranov 5 years ago committed by GitHub
commit eab9b2e42f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 4
      apps/block_scout_web/assets/css/components/_footer.scss
  3. 10
      apps/block_scout_web/assets/css/components/_network-selector.scss
  4. 4
      apps/block_scout_web/assets/webpack.config.js

@ -7,6 +7,7 @@
- [#2294](https://github.com/poanetwork/blockscout/pull/2294) - add healthy block period checking endpoint - [#2294](https://github.com/poanetwork/blockscout/pull/2294) - add healthy block period checking endpoint
### Fixes ### Fixes
- [#2378](https://github.com/poanetwork/blockscout/pull/2378) - Page performance: exclude moment.js localization files except EN, remove unused css
- [#2375](https://github.com/poanetwork/blockscout/pull/2375) - Update created_contract_code_indexed_at on transaction import conflict - [#2375](https://github.com/poanetwork/blockscout/pull/2375) - Update created_contract_code_indexed_at on transaction import conflict
- [#2346](https://github.com/poanetwork/blockscout/pull/2346) - Avoid fetching internal transactions of blocks that still need refetching - [#2346](https://github.com/poanetwork/blockscout/pull/2346) - Avoid fetching internal transactions of blocks that still need refetching
- [#2350](https://github.com/poanetwork/blockscout/pull/2350) - fix invalid User agent headers - [#2350](https://github.com/poanetwork/blockscout/pull/2350) - fix invalid User agent headers

@ -61,10 +61,6 @@ $footer-logo-width: auto !default;
} }
} }
.footer-info {
padding-top: 1em;
}
.footer-link { .footer-link {
color: $footer-link-color; color: $footer-link-color;

@ -287,16 +287,6 @@ $network-selector-item-icon-dimensions: 30px !default;
} }
} }
.network-selector-load-more-container {
flex-shrink: 1;
padding: 0 $network-selector-horizontal-padding;
.btn-network-selector-load-more {
@include btn-line($btn-network-selector-load-more-background, $btn-network-selector-load-more-color);
width: 100%;
}
}
.network-selector-item-favorite { .network-selector-item-favorite {
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;

@ -1,6 +1,7 @@
const path = require('path'); const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin');
const { ContextReplacementPlugin } = require('webpack')
const glob = require("glob"); const glob = require("glob");
function transpileViewScript(file) { function transpileViewScript(file) {
@ -74,7 +75,8 @@ const appJs =
}, },
plugins: [ plugins: [
new ExtractTextPlugin('../css/app.css'), new ExtractTextPlugin('../css/app.css'),
new CopyWebpackPlugin([{ from: 'static/', to: '../' }]) new CopyWebpackPlugin([{ from: 'static/', to: '../' }]),
new ContextReplacementPlugin(/moment[\/\\]locale$/, /en/)
] ]
} }

Loading…
Cancel
Save