解决前端目录调整后前端访问不了问题 (#4206)
@ -93,7 +93,7 @@ module.exports = {
|
||||
}),
|
||||
new CopyWebpackPlugin([
|
||||
{
|
||||
from: resolve('public'),
|
||||
from: resolve('../console/src/main/resources/static/console-ui/public'),
|
||||
to: './',
|
||||
ignore: ['index.html'],
|
||||
},
|
||||
|
@ -18,6 +18,16 @@ const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
const base = require('./webpack.base.conf');
|
||||
|
||||
const [cssLoader] = base.module.rules;
|
||||
cssLoader.use.push({
|
||||
loader: '@alifd/next-theme-loader',
|
||||
options: {
|
||||
modifyVars: {
|
||||
'$icon-font-path': '"/icons/icon-font"',
|
||||
'$font-custom-path': '"/fonts/"'
|
||||
}
|
||||
}
|
||||
})
|
||||
module.exports = Object.assign({}, base, {
|
||||
output: {
|
||||
filename: './js/[name].js',
|
||||
|
@ -26,8 +26,8 @@ cssLoader.use.push({
|
||||
loader: '@alifd/next-theme-loader',
|
||||
options: {
|
||||
modifyVars: {
|
||||
'$icon-font-path': '"/nacos/icons/icon-font"',
|
||||
'$font-custom-path': '"/nacos/fonts/"'
|
||||
'$icon-font-path': '"/nacos/console-ui/public/icons/icon-font"',
|
||||
'$font-custom-path': '"/nacos/console-ui/public/fonts/"'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -104,7 +104,7 @@ request.middleWare((_config = {}) => {
|
||||
* 配置 monaco
|
||||
*/
|
||||
window.require.config({
|
||||
paths: { vs: process.env.NODE_ENV === 'production' ? 'console-fe/public/js/vs' : 'js/vs' },
|
||||
paths: { vs: process.env.NODE_ENV === 'production' ? 'console-ui/public/js/vs' : 'js/vs' },
|
||||
});
|
||||
window.require.config({
|
||||
'vs/nls': {
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "Nacos-console-fe-test",
|
||||
"name": "Nacos-console-ui-test",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "",
|
||||
|
@ -83,7 +83,7 @@
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<excludes>
|
||||
<exclude>static/console-fe/.vscode/**</exclude>
|
||||
<exclude>static/console-ui/.vscode/**</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
</resources>
|
||||
|
@ -57,7 +57,7 @@ nacos.cmdb.loadDataAtStart=false
|
||||
#management.security=false
|
||||
#security.basic.enabled=false
|
||||
#nacos.security.ignore.urls=/**
|
||||
nacos.security.ignore.urls=/,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/v1/auth/login,/v1/console/health,/v1/cs/**,/v1/ns/**,/v1/cmdb/**,/actuator/**
|
||||
nacos.security.ignore.urls=/,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-ui/public/**,/v1/auth/login,/v1/console/health,/v1/cs/**,/v1/ns/**,/v1/cmdb/**,/actuator/**
|
||||
|
||||
management.metrics.export.elastic.enabled=false
|
||||
#management.metrics.export.elastic.host=http://localhost:9200
|
||||
|
@ -109,7 +109,7 @@ server.tomcat.basedir=
|
||||
#spring.security.enabled=false
|
||||
|
||||
### The ignore urls of auth, is deprecated in 1.2.0:
|
||||
nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**
|
||||
nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-ui/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**
|
||||
|
||||
### The auth system to use, currently only 'nacos' is supported:
|
||||
nacos.core.auth.system.type=nacos
|
||||
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 114 B After Width: | Height: | Size: 114 B |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |