add test and update webpack config

[new] add test config
[new] add breadcrumb test
[change] update package.json
[new] util.js copied from  element
[unresolved] see test/unit/index.js @todo
This commit is contained in:
huixisheng 2017-03-04 00:09:02 +08:00
parent c9c5e751ae
commit 9b6ff1ce28
10 changed files with 222 additions and 4 deletions

View file

@ -2,6 +2,10 @@
* 公共配置
*/
var webpack = require('webpack');
var path = require('path');
function resolve (dir) {
return path.join(__dirname, '..', dir)
}
module.exports = {
// 加载器
@ -55,6 +59,10 @@ module.exports = {
]
},
resolve: {
extensions: ['.js', '.vue']
extensions: ['.js', '.vue'],
alias: {
'vue': 'vue/dist/vue.esm.js',
'@': resolve('src'),
}
}
};