forked from cool-squad/cool-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cool-squad#1 optimize build size && logo,font-size responsive
- Loading branch information
1 parent
c61b93d
commit 7dbefe7
Showing
11 changed files
with
73 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/cli-plugin-babel/preset', | ||
presets: ['@vue/cli-plugin-babel/preset'], | ||
plugins: [ | ||
[ | ||
'component', | ||
{ | ||
libraryName: 'element-ui', | ||
styleLibraryName: 'theme-chalk', | ||
}, | ||
], | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
import Vue from 'vue'; | ||
import ElementUI from 'element-ui'; | ||
import App from './App.vue'; | ||
import router from './router'; | ||
import store from './store'; | ||
import axios from './libs/api'; | ||
import element from './plugins/elementImport'; | ||
import 'amfe-flexible'; | ||
import './assets/icons'; | ||
import '@/assets/styles/vendors-extensions/_element.scss'; | ||
|
||
Vue.config.productionTip = false; | ||
Vue.use(ElementUI); | ||
Vue.prototype.$axios = axios; | ||
Vue.use(element); | ||
|
||
new Vue({ | ||
router, | ||
store, | ||
render: (h) => h(App), | ||
}).$mount('#app'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Row, Col, Container } from 'element-ui'; | ||
import 'element-ui/lib/theme-chalk/index.css'; | ||
|
||
export default (Vue) => { | ||
Vue.component(Row.name, Row); | ||
Vue.component(Col.name, Col); | ||
Vue.component(Container.name, Container); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters