CS-Tao/GTD-Visualization

View on GitHub
.electron-vue/webpack.renderer.config.js

Summary

Maintainability
B
6 hrs
Test Coverage

Showing 3 of 3 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

if (process.env.NODE_ENV === 'production') {
rendererConfig.devtool = ''
 
rendererConfig.plugins.push(
new BabiliWebpackPlugin(),
Severity: Major
Found in .electron-vue/webpack.renderer.config.js and 1 other location - About 3 hrs to fix
.electron-vue/webpack.web.config.js on lines 136..155

Similar blocks of code found in 2 locations. Consider refactoring.
Open

if (process.env.NODE_ENV !== 'production') {
rendererConfig.plugins.push(
new webpack.DefinePlugin({
'__static': `"${path.join(__dirname, '../static').replace(/\\/g, '\\\\')}"`
})
Severity: Major
Found in .electron-vue/webpack.renderer.config.js and 1 other location - About 2 hrs to fix
.electron-vue/webpack.main.config.js on lines 52..58

Similar blocks of code found in 2 locations. Consider refactoring.
Open

{
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
use: {
loader: 'url-loader',
query: {
Severity: Minor
Found in .electron-vue/webpack.renderer.config.js and 1 other location - About 30 mins to fix
.electron-vue/webpack.web.config.js on lines 75..85

There are no issues that match your filters.

Category
Status