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:
parent
c9c5e751ae
commit
9b6ff1ce28
10 changed files with 222 additions and 4 deletions
|
@ -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'),
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue