Skip to content

Commit

Permalink
update for style rules in webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
jbakse committed Jan 13, 2022
1 parent ac863e4 commit 644c0bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions webpack.common.js
Expand Up @@ -9,12 +9,12 @@ module.exports = {
module: {
rules: [
{
test: /\.css$/,
test: /\.css$/u,
use: ["style-loader", "css-loader"],
},
{
test: /\.js$/,
exclude: /node_modules/,
test: /\.js$/u,
exclude: /node_modules/u,
use: {
loader: "babel-loader",
options: {
Expand Down
3 changes: 1 addition & 2 deletions webpack.profile.js
Expand Up @@ -2,8 +2,7 @@

const merge = require("webpack-merge");
const prod = require("./webpack.prod.js");
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
.BundleAnalyzerPlugin;
const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");

module.exports = merge(prod, {
plugins: [new BundleAnalyzerPlugin()],
Expand Down

0 comments on commit 644c0bf

Please sign in to comment.