- mintui
- Amazeui vue
- semantic-ui
原文
mintui
npm install mint-ui -S
1 2 3 4
| import Vue from 'vue' import Mint from 'mint-ui' Vue.use(Mint)
|
Amazeui vue
npm install amaze-vue --save
1 2 3 4 5
| import Vue from 'vue' import AmazeVue from 'amaze-vue' import 'amaze-vue/dist/amaze-vue.css'; Vue.use(AmazeVue)
|
semantic-ui
npm install --save jquery
1 2 3 4 5 6 7 8
|
new webpack.ProvidePlugin({ $ : "jquery", jQuery : "jquery", "window.jQuery": "jquery", "root.jQuery" : "jquery" })
|
npm install semantic-ui-css --save
1 2 3 4 5 6 7 8 9 10 11 12 13
| resolve : { extensions: ['', '.js', '.vue'], fallback : [path.join(__dirname, '../node_modules')], alias : { 'vue' : 'vue/dist/vue.common.js', 'src' : path.resolve(__dirname, '../src'), 'assets' : path.resolve(__dirname, '../src/assets'), 'components': path.resolve(__dirname, '../src/components'), 'semantic' : path.resolve(__dirname, '../node_modules/semantic-ui-css/semantic.min.js') } }
|
1 2 3 4 5 6 7 8 9 10 11
| new webpack.ProvidePlugin({ $ : "jquery", jQuery : "jquery", "window.jQuery": "jquery", "root.jQuery" : "jquery", semantic : 'semantic-ui-css', Semantic : 'semantic-ui-css', 'semantic-ui': 'semantic-ui-css' }),
|
1 2 3
| import semantic from 'semantic' import '../node_modules/semantic-ui-css/semantic.min.css'
|