Skip to content

Commit 6433e8a

Browse files
committed
chore: Enable linking to coreui-vue in develop.
1 parent da02129 commit 6433e8a

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"@coreui/coreui": "^2.1.6",
1818
"@coreui/coreui-plugin-chartjs-custom-tooltips": "^1.2.0",
1919
"@coreui/icons": "0.3.0",
20-
"@coreui/vue": "github:coreui/coreui-vue#woothu",
2120
"bootstrap": "^4.1.3",
2221
"bootstrap-vue": "^2.0.0-rc.11",
22+
"@coreui/vue": "../coreui-vue",
2323
"chart.js": "^2.7.3",
2424
"core-js": "^2.5.7",
2525
"css-vars-ponyfill": "^1.11.1",

src/main.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,19 @@ import Vue from 'vue'
99
import BootstrapVue from 'bootstrap-vue'
1010
import App from './App'
1111
import router from './router'
12-
import CoreuiVue from '@coreui/vue'
12+
13+
14+
15+
//only for development with link
16+
import CoreuiVueLink from '@coreui/vue/src'
17+
// import CoreuiVue from '@coreui/vue'
1318

1419
Vue.config.performance = true
1520

1621
// todo
1722
// cssVars()
1823
Vue.use(BootstrapVue)
19-
Vue.use(CoreuiVue)
24+
Vue.use(CoreuiVueLink)
2025

2126

2227
/* eslint-disable no-new */

vue.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
module.exports = {
22
lintOnSave: false,
3-
runtimeCompiler: true
3+
runtimeCompiler: true,
4+
configureWebpack: {
5+
//Necessary to run npm link https://webpack.js.org/configuration/resolve/#resolve-symlinks
6+
resolve: {
7+
symlinks: false
8+
}
9+
}
410
}

0 commit comments

Comments
 (0)