diff --git a/console/src/main/resources/static/console-fe/.babelrc b/console/src/main/resources/static/console-fe/.babelrc index d84719776..0bad3f503 100644 --- a/console/src/main/resources/static/console-fe/.babelrc +++ b/console/src/main/resources/static/console-fe/.babelrc @@ -1,6 +1,5 @@ { "presets": [ - "env", "react-app" ], "plugins": [ diff --git a/console/src/main/resources/static/console-fe/build/webpack.base.conf.js b/console/src/main/resources/static/console-fe/build/webpack.base.conf.js index 590606060..d085b748c 100644 --- a/console/src/main/resources/static/console-fe/build/webpack.base.conf.js +++ b/console/src/main/resources/static/console-fe/build/webpack.base.conf.js @@ -40,14 +40,14 @@ module.exports = { include: [resolve('src')], }, { test: /\.(js|jsx)$/, - exclude: /node_modules/, + include: [resolve('src')], use: ['babel-loader'], }, { test: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/], loader: 'url-loader', options: { limit: 10000, - name: '/images/[name].[hash:8].[ext]', + name: '/img/[name].[hash:8].[ext]', }, }, { test: /\.(ttf|woff|svg)$/, @@ -66,12 +66,10 @@ module.exports = { template: './public/index.html', minify: !isDev, }), - new CopyWebpackPlugin([ - { - from: path.resolve(__dirname, '../public'), - to: './', - ignore: ['index.html'], - }, - ]), + new CopyWebpackPlugin([{ + from: resolve('public'), + to: './', + ignore: ['index.html'], + }]), ], }; diff --git a/console/src/main/resources/static/console-fe/package.json b/console/src/main/resources/static/console-fe/package.json index bc003675e..736d57d91 100644 --- a/console/src/main/resources/static/console-fe/package.json +++ b/console/src/main/resources/static/console-fe/package.json @@ -67,11 +67,9 @@ "dependencies": { "@alifd/next": "^1.9.19", "axios": "^0.18.0", - "dva": "^2.4.1", "jquery": "^3.3.1", "moment": "^2.22.2", "prop-types": "^15.6.2", - "query-string": "^6.2.0", "react": "^16.6.0", "react-dom": "^16.6.0", "react-redux": "^5.1.0", diff --git a/console/src/main/resources/static/console-fe/public/index.html b/console/src/main/resources/static/console-fe/public/index.html index b8e5cb59d..a0046fee9 100644 --- a/console/src/main/resources/static/console-fe/public/index.html +++ b/console/src/main/resources/static/console-fe/public/index.html @@ -28,7 +28,6 @@ -
@@ -49,9 +48,7 @@ - - -