Skip to content

Instantly share code, notes, and snippets.

View Rafael-Martins's full-sized avatar
🏠
Working from home

Rafael Martins Rafael-Martins

🏠
Working from home
View GitHub Profile
@Rafael-Martins
Rafael-Martins / webpack.config.js
Created July 22, 2019 15:07
CircularDependencyPlugin config
// webpack.config.js
const CircularDependencyPlugin = require('circular-dependency-plugin')
module.exports = {
entry: "./src/index",
plugins: [
new CircularDependencyPlugin({
// exclude detection of files based on a RegExp
exclude: /a\.js|node_modules/,
// add errors to webpack instead of warnings