Skip to content

Commit

Permalink
Merge pull request #277 from maxmarinich/2.7.1
Browse files Browse the repository at this point in the history
2.7.1
  • Loading branch information
maxmarinich authored Mar 31, 2023
2 parents eb1e5da + 7ce5f4e commit c358a32
Show file tree
Hide file tree
Showing 5 changed files with 2,345 additions and 1,695 deletions.
14 changes: 14 additions & 0 deletions config/webpack/config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const { merge } = require('webpack-merge');
const HtmlWebPackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const ESLintPlugin = require('eslint-webpack-plugin');
const CircularDependencyPlugin = require('circular-dependency-plugin');
const configBase = require('./config.base');

const configDev = {
Expand All @@ -17,6 +18,19 @@ const configDev = {
],
},
plugins: [
new CircularDependencyPlugin({
// exclude detection of files based on a RegExp
exclude: /node_modules/,
// include specific files based on a RegExp
include: /src/,
// add errors to webpack instead of warnings
failOnError: true,
// allow import cycles that include an asyncronous import,
// e.g. via import(/* webpackMode: "weak" */ './file.js')
allowAsyncCycles: false,
// set the current working directory for displaying module paths
cwd: process.cwd(),
}),
new ESLintPlugin({ extensions: ['ts', 'tsx'] }),
new HtmlWebPackPlugin({
template: './public/index.html',
Expand Down
Loading

0 comments on commit c358a32

Please sign in to comment.