From 0655625ce5519db96318def6b7f8d3129114bcab Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Thu, 10 Jun 2021 22:29:17 -0700 Subject: [PATCH] Fix webpack config for webpack 5 --- packages/base-manager/test/webpack-cov.conf.js | 2 +- packages/base-manager/test/webpack.conf.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/base-manager/test/webpack-cov.conf.js b/packages/base-manager/test/webpack-cov.conf.js index ce990f4c40e..0e84a42c20c 100644 --- a/packages/base-manager/test/webpack-cov.conf.js +++ b/packages/base-manager/test/webpack-cov.conf.js @@ -12,7 +12,7 @@ module.exports = { loaders: [ { test: /\.json$/, loader: 'json-loader' }, { test: /\.ipynb$/, loader: 'json-loader' }, - { test: /\.css$/, loader: 'style-loader!css-loader' }, + { test: /\.css$/, use: ['style-loader', 'css-loader'] }, { test: /\.md$/, loader: 'raw-loader' }, { test: /\.html$/, loader: 'file?name=[name].[ext]' } ], diff --git a/packages/base-manager/test/webpack.conf.js b/packages/base-manager/test/webpack.conf.js index 0f102497d91..85c0249f852 100644 --- a/packages/base-manager/test/webpack.conf.js +++ b/packages/base-manager/test/webpack.conf.js @@ -10,7 +10,7 @@ module.exports = { bail: true, module: { rules: [ - { test: /\.css$/, loader: 'style-loader!css-loader' }, + { test: /\.css$/, use: ['style-loader', 'css-loader'] }, { test: /\.md$/, loader: 'raw-loader' }, { test: /\.html$/, loader: 'file?name=[name].[ext]' }, { test: /\.ipynb$/, loader: 'json-loader' }