mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-21 02:59:07 +00:00
perf: 增加webpack别名配置
This commit is contained in:
@@ -20,6 +20,6 @@ VUE_APP_LOGOUT_PATH = '/core/auth/logout/'
|
||||
|
||||
|
||||
# Dev server for core proxy
|
||||
VUE_APP_CORE_HOST = 'http://localhost:8080'
|
||||
VUE_APP_CORE_WS = 'ws://localhost:8080'
|
||||
VUE_APP_CORE_HOST = 'https://jumpserver-test.fit2cloud.com/'
|
||||
VUE_APP_CORE_WS = 'wss://jumpserver-test.fit2cloud.com/'
|
||||
VUE_APP_ENV = 'development'
|
||||
|
@@ -9,6 +9,20 @@
|
||||
<meta http-equiv="Cache" content="no-cache">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<title><%= webpackConfig.name %></title>
|
||||
<style>
|
||||
::-webkit-scrollbar {
|
||||
width:10px;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
|
||||
border-radius:10px;
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
border-radius:10px;
|
||||
background:rgba(167, 177, 194, 0.2);
|
||||
box-shadow: inset 0 0 5px rgba(0,0,0,0.4);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
|
@@ -3,8 +3,8 @@ import Vue from 'vue'
|
||||
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
|
||||
|
||||
import ElementUI from 'element-ui'
|
||||
import 'element-ui/lib/theme-chalk/index.css'
|
||||
import locale from 'element-ui/lib/locale/lang/en' // lang i18n
|
||||
import 'elementCss'
|
||||
import locale from 'elementLocale'
|
||||
|
||||
import '@/styles/index.scss' // global css
|
||||
|
||||
|
@@ -82,8 +82,13 @@ module.exports = {
|
||||
name: name,
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve('src')
|
||||
}
|
||||
'@': resolve('src'),
|
||||
elementCss: resolve('node_modules/element-ui/lib/theme-chalk/index.css'),
|
||||
elementLocale: resolve('node_modules/element-ui/lib/locale/lang/en.js'),
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.vue', '.js', '.json'],
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
new CompressionWebpackPlugin({
|
||||
|
Reference in New Issue
Block a user