2
0
mirror of https://github.com/tenrok/vue-form-wizard.git synced 2026-06-22 19:50:33 +03:00

Add build setup from vue-cli webpack template

This commit is contained in:
cristijora
2017-04-15 23:05:30 +03:00
parent 011774fd34
commit f5a3339ac8
34 changed files with 963 additions and 31 deletions
+24
View File
@@ -0,0 +1,24 @@
// This is the webpack config used for unit tests.
var utils = require('./utils')
var webpack = require('webpack')
var merge = require('webpack-merge')
var baseConfig = require('./webpack.base.conf')
var webpackConfig = merge(baseConfig, {
// use inline sourcemap for karma-sourcemap-loader
module: {
rules: utils.styleLoaders()
},
devtool: '#inline-source-map',
plugins: [
new webpack.DefinePlugin({
'process.env': require('../config/test.env')
})
]
})
// no need for app entry during tests
delete webpackConfig.entry
module.exports = webpackConfig