Skip to content

Commit f7a91fc

Browse files
committedDec 27, 2015
build: adjust test build setup for easier requires
1 parent 599e38e commit f7a91fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+132
-125
lines changed
 

‎build/karma.base.config.js

+5-11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
var webpackConfig = require('./webpack.test.config')
2+
delete webpackConfig.entry
3+
delete webpackConfig.devtool
4+
15
// shared config for all unit tests
26
module.exports = {
37
frameworks: ['jasmine'],
@@ -8,17 +12,7 @@ module.exports = {
812
preprocessors: {
913
'../test/unit/specs/index.js': ['webpack']
1014
},
11-
webpack: {
12-
module: {
13-
loaders: [
14-
{
15-
test: /\.js$/,
16-
exclude: /test|node_modules/,
17-
loader: 'babel?optional[]=runtime&loose=all'
18-
}
19-
]
20-
}
21-
},
15+
webpack: webpackConfig,
2216
webpackMiddleware: {
2317
noInfo: true
2418
},

‎build/webpack.dev.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
var path = require('path')
12
var webpack = require('webpack')
23

34
module.exports = {
45
entry: './src/index',
56
output: {
6-
path: './dist',
7+
path: path.resolve(__dirname, '../dist'),
78
filename: 'vue.js',
89
library: 'Vue',
910
libraryTarget: 'umd'

0 commit comments

Comments
 (0)
Please sign in to comment.