Skip to content

Commit e9c14ff

Browse files
committed
fixed webpack cleanup issue and codacy issue
1 parent bede8cd commit e9c14ff

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

config/webpack.common.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ module.exports = mode => {
5858
},
5959

6060
plugins: [
61-
new CleanWebpackPlugin([path.resolve(__dirname, '../dist')], { allowExternal: true }),
61+
new CleanWebpackPlugin({
62+
cleanOnceBeforeBuildPatterns: [path.resolve(__dirname, '../dist')]
63+
}),
6264
new HtmlWebpackPlugin({
6365
template: "./index.html", // Input FileName
6466
filename: "./index.html" // Output FileName

vendor.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import "@babel/polyfill";
2-
import angular from "angular";
3-
import uiRouter from "angular-ui-router";
4-
import ocLazyLoad from "oclazyload";
2+
import "angular";
3+
import "angular-ui-router";
4+
import "oclazyload";
55

6-
import React from "react";
7-
import ReactDOM from "react-dom";
6+
import "react";
7+
import "react-dom";
88

9-
import "bootstrap/scss/bootstrap.scss";
9+
import "bootstrap/scss/bootstrap.scss";

0 commit comments

Comments
 (0)