nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit 7575a677cf8ba60030c48faeddc82993a2bc627a
parent af852b6d490f60343cc32c8c41c84911aaec81ec
Author: Sergey Orlov <wladimirych@gmail.com>
Date:   Tue, 22 Jun 2021 11:29:39 +0200

config:  update webpack config for version 5.x

Diffstat:
Mwebpack/webpack.config.js | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/webpack/webpack.config.js b/webpack/webpack.config.js @@ -163,7 +163,7 @@ const loaders = [ { test: /\.js$/u, exclude: isProduction ? [/node_modules\/core-js/u, /node_modules\/webpack/u] : /node_modules/u, - loaders: [ + use: [ { loader: 'babel-loader', options: babelConfig, @@ -173,7 +173,7 @@ const loaders = [ { test: /\.s?css/iu, - loaders: isProduction ? productionCSSLoader : developmentCSSLoader, + use: isProduction ? productionCSSLoader : developmentCSSLoader, }, ]; @@ -192,7 +192,6 @@ module.exports = { optimization: { splitChunks: { chunks: 'all', - name: true, }, runtimeChunk: 'single', minimizer: [