Commit c36e0463 by xinla

@import css 问题

1 parent 9231403f
...@@ -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
...@@ -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
}) })
......
@import url(/static/css/common.css);
/* 可以在此定义适用于自己团队的项目型基础公共类 */ /* 可以在此定义适用于自己团队的项目型基础公共类 */
@import url(/static/css/var.css);
/* 可以在此定义适用于自己团队的css 变量*/ /* 可以在此定义适用于自己团队的css 变量*/
...@@ -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
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!