fixed bug: Can not compile iview sometime

fixed bug: Can not compile iview sometime
This commit is contained in:
梁灏 2016-11-01 14:21:56 +08:00
parent f12aca9e84
commit 72493927e1
3 changed files with 30 additions and 7 deletions

View file

@ -43,8 +43,7 @@ npm install iview --save
```js
module: {
loaders: [
{ test: /iview\/.*?js$/, loader: 'babel' },// for Mac
{ test: /iview\\.*?js$/, loader: 'babel' },// for Windows
{ test: /iview.src.*?js$/, loader: 'babel' },
{ test: /\.js$/, loader: 'babel', exclude: /node_modules/ }
]
}