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

@ -8,6 +8,7 @@ var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var merge = require('webpack-merge')
var webpackBaseConfig = require('./webpack.base.config.js');
var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
module.exports = merge(webpackBaseConfig, {
@ -35,6 +36,7 @@ module.exports = merge(webpackBaseConfig, {
inject: true,
filename: path.join(__dirname, '../examples/dist/index.html'),
template: path.join(__dirname, '../examples/index.html')
})
}),
new FriendlyErrorsPlugin()
]
});