Some projects might need specific webpack plugin to be configured in a different way or completely removed. Currently, config works for 80% of the cases but becomes a roadblock for rest of the cases.
|
plugins: [ |
|
new CleanWebpackPlugin(), |
|
new HtmlWebpackPlugin({ |
|
template: INDEX_HTML, |
|
minify: { |
|
collapseWhitespace: true, |
|
removeComments: true |
|
} |
|
}), |
|
new CopyPlugin({ |
|
patterns: [ |
|
{ |
|
from: PUBLIC, |
|
to: DIST, |
|
globOptions: { |
|
ignore: ['**/index.html'] |
|
} |
|
} |
|
] |
|
}), |
|
new ForkTsCheckerWebpackPlugin(), |
|
new CircularDependencyPlugin({ |
|
exclude: /node_modules/, |
|
failOnError: true |
|
}), |
|
new CompressionPlugin(), |
|
new Dotenv({ systemvars: true }) |
|
] |
Some projects might need specific webpack plugin to be configured in a different way or completely removed. Currently, config works for 80% of the cases but becomes a roadblock for rest of the cases.
configs/packages/webpack-config/configs/webpack.common.js
Lines 84 to 111 in 78ec2a6