Update npm packages

pull/2503/head
Victor Baranov 5 years ago
parent cb79fa59a5
commit 2dba90a35d
  1. 5657
      apps/block_scout_web/assets/package-lock.json
  2. 7
      apps/block_scout_web/assets/package.json
  3. 9
      apps/block_scout_web/assets/webpack.config.js

File diff suppressed because it is too large Load Diff

@ -47,7 +47,7 @@
"babel-loader": "^7.1.4", "babel-loader": "^7.1.4",
"babel-preset-env": "^1.6.1", "babel-preset-env": "^1.6.1",
"copy-webpack-plugin": "^4.5.1", "copy-webpack-plugin": "^4.5.1",
"css-loader": "^0.28.11", "css-loader": "^3.1.0",
"eslint": "^4.15.0", "eslint": "^4.15.0",
"eslint-config-standard": "^11.0.0-beta.0", "eslint-config-standard": "^11.0.0-beta.0",
"eslint-plugin-import": "^2.8.0", "eslint-plugin-import": "^2.8.0",
@ -60,11 +60,12 @@
"node-sass": "^4.9.3", "node-sass": "^4.9.3",
"optimize-css-assets-webpack-plugin": "^5.0.3", "optimize-css-assets-webpack-plugin": "^5.0.3",
"postcss-loader": "^2.1.4", "postcss-loader": "^2.1.4",
"sass-loader": "^7.0.1", "sass-loader": "^7.1.0",
"style-loader": "^0.21.0", "style-loader": "^0.21.0",
"terser-webpack-plugin": "^1.3.0", "terser-webpack-plugin": "^1.3.0",
"webpack": "^4.6.0", "webpack": "^4.6.0",
"webpack-cli": "^3.0.8" "webpack-cli": "^3.0.8",
"webpack-plugin-critical": "^1.0.0"
}, },
"jest": { "jest": {
"moduleNameMapper": { "moduleNameMapper": {

@ -4,6 +4,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin');
const { ContextReplacementPlugin } = require('webpack'); const { ContextReplacementPlugin } = require('webpack');
const { CriticalPlugin } = require('webpack-plugin-critical');
const glob = require("glob"); const glob = require("glob");
function transpileViewScript(file) { function transpileViewScript(file) {
@ -83,7 +84,13 @@ const appJs =
filename: '../css/app.css' filename: '../css/app.css'
}), }),
new CopyWebpackPlugin([{ from: 'static/', to: '../' }]), new CopyWebpackPlugin([{ from: 'static/', to: '../' }]),
new ContextReplacementPlugin(/moment[\/\\]locale$/, /en/) new ContextReplacementPlugin(/moment[\/\\]locale$/, /en/),
// new CriticalPlugin({
// src: 'index.html',
// inline: true,
// minify: true,
// dest: 'index.html'
// })
] ]
} }

Loading…
Cancel
Save