Skip to content

Commit 7f91b8d

Browse files
mikekidderktsn
authored andcommitted
webpack to beta.27; rimraf for cross platform support (#37)
* Fix: webpack.beta.27; rimraf, cross platform support * Fix#2: mounted App twice
1 parent e4abed2 commit 7f91b8d

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

example/example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class App extends Vue {
4848
}
4949

5050
// mount
51-
new App({
51+
new Vue({
5252
el: '#el',
5353
render: h => h(App, { props: { propMessage: 'World!' }})
5454
})

example/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
{
1010
test: /\.ts$/,
1111
exclude: /node_modules|vue\/src/,
12-
loader: 'ts'
12+
loader: 'ts-loader'
1313
}
1414
]
1515
},

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"scripts": {
1212
"build": "tsc -p .",
13-
"clean": "rm -rf lib",
13+
"clean": "rimraf ./lib",
1414
"example": "npm run build && webpack --config example/webpack.config.js",
1515
"dev": "webpack --config example/webpack.config.js --watch",
1616
"test": "npm run build && webpack --config test/webpack.config.js && mocha test/test.build.js",
@@ -43,9 +43,10 @@
4343
"chai": "^3.5.0",
4444
"mocha": "^3.1.2",
4545
"node-libs-browser": "^1.0.0",
46+
"rimraf": "^2.5.4",
4647
"ts-loader": "^0.9.5",
4748
"typescript": "^2.0.6",
4849
"vue": "^2.0.3",
49-
"webpack": "^2.1.0-beta.25"
50+
"webpack": "^2.1.0-beta.27"
5051
}
5152
}

test/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ module.exports = {
1212
{
1313
test: /\.ts$/,
1414
exclude: /node_modules|vue\/src/,
15-
loader: 'ts'
15+
loader: 'ts-loader'
1616
},
1717
{
1818
test: /\.js$/,
1919
exclude: /node_modules|vue\/src/,
20-
loader: 'babel'
20+
loader: 'babel-loader'
2121
}
2222
]
2323
}

0 commit comments

Comments
 (0)