Skip to content

Commit

Permalink
fix webpack example to include '-loader' (#524)
Browse files Browse the repository at this point in the history
Updated for latest webpack syntax. leaving off the '-loader' throws an error
  • Loading branch information
jraller authored and johnnyreilly committed Apr 19, 2017
1 parent c5aabb3 commit 211c4d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -245,9 +245,9 @@ module.exports = {
extensions: ['.ts', '.vue']
},
module: {
loaders: [
{ test: /\.vue$/, loader: 'vue' },
{ test: /\.ts$/, loader: 'ts', options: { appendTsSuffixTo: [/\.vue$/] } }
rules: [
{ test: /\.vue$/, loader: 'vue-loader' },
{ test: /\.ts$/, loader: 'ts-loader', options: { appendTsSuffixTo: [/\.vue$/] } }
]
}
}
Expand Down

0 comments on commit 211c4d4

Please sign in to comment.