Skip to content

Commit

Permalink
feature: add due && element cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed Oct 19, 2017
1 parent a1f4cb5 commit 746aff5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions build/webpack.base.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ module.exports = {
? config.build.assetsPublicPath
: config.dev.assetsPublicPath
},
externals: {
vue: 'Vue',
'element-ui':'ELEMENT'
},
resolve: {
extensions: ['.js', '.vue', '.json'],
alias: {
Expand Down
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
<head>
<meta charset="utf-8">
<title>vue-admin</title>
<!-- 引入样式 -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/lib/theme-default/index.css">
</head>
<body>
<!-- 先引入 Vue -->
<script src="https://unpkg.com/[email protected]/dist/vue.js"></script>
<!-- 引入组件库 -->
<script src="https://unpkg.com/[email protected]/lib/index.js"></script>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/store/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Vue from 'vue'
// import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
import user from './modules/user'
import getters from './getters'

Vue.use(Vuex)
// Vue.use(Vuex)

const store = new Vuex.Store({
modules: {
Expand Down

7 comments on commit 746aff5

@WEBwangfangdong
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

安师大

@WEBwangfangdong
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么不要webpack打包vue和element

@indseve
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ls校友啊

@Crazy-snake
Copy link

@Crazy-snake Crazy-snake commented on 746aff5 Nov 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

找到好东西了!开始学习,感谢楼主!

@YondFane
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以将静态页面发我一份吗?[email protected]

@wyc2025
Copy link

@wyc2025 wyc2025 commented on 746aff5 Nov 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cdn地址可以换国内的,这个好慢

@liuyi1212
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

前端登录的密码是什么

Please sign in to comment.