Commit c36e0463 by xinla

@import css 问题

1 parent 9231403f
......@@ -15,10 +15,9 @@
<title>
<%= VUE_APP_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>
<!-- 使用CDN的CSS文件 -->
......@@ -46,6 +45,9 @@
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.js) { %>
<script type="text/javascript" src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
<% } %>
</body>
<script src="https://hm.baidu.com/hm.js?8f5214f3a0f80a33eb32a0f890167cc1"></script>
<script src="https://hm.baidu.com/hm.js?489a58fd4fcaf2347cee64a8827e7094"></script>
</html>
\ No newline at end of file
......@@ -10,7 +10,7 @@ import 'vue-super-flow/lib/index.css'
Vue.use(SuperFlow)
import Element from 'element-ui'
import './styles/element-variables.scss'
import '@/styles/element-variables.scss'
Vue.use(Element, {
size: Cookies.get('size') || 'small', // set element-ui default size
})
......
@import url(/static/css/common.css);
/* 可以在此定义适用于自己团队的项目型基础公共类 */
@import url(/static/css/var.css);
/* 可以在此定义适用于自己团队的css 变量*/
......@@ -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
// test: /[\\/]node_modules[\\/]_?element-ui(.*)/, // in order to adapt to cnpm
// },
elementUI: {
name: 'element-ui',
test: /element-variables\.scss$/, // can customize your rules
},
commons: {
name: 'chunk-commons',
test: resolve('src/components'), // can customize your rules
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!