Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c36e0463
authored
Mar 31, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
@import css 问题
1 parent
9231403f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
4 deletions
linkwe-pc/public/index.html
linkwe-pc/src/main.js
linkwe-pc/src/styles/common.css
linkwe-pc/src/styles/var.css
linkwe-pc/vue.config.js
linkwe-pc/public/index.html
View file @
c36e046
...
@@ -15,10 +15,9 @@
...
@@ -15,10 +15,9 @@
<title>
<title>
<
%= VUE_APP_TITLE %>
<
%= VUE_APP_TITLE %>
</title>
</title>
<link
rel=
"stylesheet"
href=
"./static/css/init.css"
>
<link
rel=
"stylesheet"
href=
"./static/css/loading.css"
>
<script
src=
"https://hm.baidu.com/hm.js?8f5214f3a0f80a33eb32a0f890167cc1"
></script>
<script
src=
"https://hm.baidu.com/hm.js?489a58fd4fcaf2347cee64a8827e7094"
></script>
<script
src=
"./static/config.js"
></script>
<script
src=
"./static/config.js"
></script>
<!-- 使用CDN的CSS文件 -->
<!-- 使用CDN的CSS文件 -->
...
@@ -46,6 +45,9 @@
...
@@ -46,6 +45,9 @@
<
% for (var i in htmlWebpackPlugin.options.cdn
&&
htmlWebpackPlugin.options.cdn.js) { %>
<
% for (var i in htmlWebpackPlugin.options.cdn
&&
htmlWebpackPlugin.options.cdn.js) { %>
<script
type=
"text/javascript"
src=
"<%= htmlWebpackPlugin.options.cdn.js[i] %>"
></script>
<script
type=
"text/javascript"
src=
"<%= htmlWebpackPlugin.options.cdn.js[i] %>"
></script>
<
% } %>
<
% } %>
</body>
</body>
<script
src=
"https://hm.baidu.com/hm.js?8f5214f3a0f80a33eb32a0f890167cc1"
></script>
<script
src=
"https://hm.baidu.com/hm.js?489a58fd4fcaf2347cee64a8827e7094"
></script>
</html>
</html>
\ No newline at end of file
\ No newline at end of file
linkwe-pc/src/main.js
View file @
c36e046
...
@@ -10,7 +10,7 @@ import 'vue-super-flow/lib/index.css'
...
@@ -10,7 +10,7 @@ import 'vue-super-flow/lib/index.css'
Vue
.
use
(
SuperFlow
)
Vue
.
use
(
SuperFlow
)
import
Element
from
'element-ui'
import
Element
from
'element-ui'
import
'
.
/styles/element-variables.scss'
import
'
@
/styles/element-variables.scss'
Vue
.
use
(
Element
,
{
Vue
.
use
(
Element
,
{
size
:
Cookies
.
get
(
'size'
)
||
'small'
,
// set element-ui default size
size
:
Cookies
.
get
(
'size'
)
||
'small'
,
// set element-ui default size
})
})
...
...
linkwe-pc/src/styles/common.css
View file @
c36e046
@import
url(/static/css/common.css)
;
/* 可以在此定义适用于自己团队的项目型基础公共类 */
/* 可以在此定义适用于自己团队的项目型基础公共类 */
linkwe-pc/src/styles/var.css
View file @
c36e046
@import
url(/static/css/var.css)
;
/* 可以在此定义适用于自己团队的css 变量*/
/* 可以在此定义适用于自己团队的css 变量*/
linkwe-pc/vue.config.js
View file @
c36e046
...
@@ -162,6 +162,10 @@ module.exports = {
...
@@ -162,6 +162,10 @@ module.exports = {
// priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app
// priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app
// test: /[\\/]node_modules[\\/]_?element-ui(.*)/, // in order to adapt to cnpm
// test: /[\\/]node_modules[\\/]_?element-ui(.*)/, // in order to adapt to cnpm
// },
// },
elementUI
:
{
name
:
'element-ui'
,
test
:
/element-variables
\.
scss$/
,
// can customize your rules
},
commons
:
{
commons
:
{
name
:
'chunk-commons'
,
name
:
'chunk-commons'
,
test
:
resolve
(
'src/components'
),
// can customize your rules
test
:
resolve
(
'src/components'
),
// can customize your rules
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment