-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added vue-router, unit tests and fixed a few issues. Changed main.js
- Loading branch information
1 parent
3505539
commit 9592b48
Showing
15 changed files
with
1,825 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// This is the webpack config used for unit tests. | ||
|
||
const webpack = require("webpack"); | ||
const merge = require("webpack-merge"); | ||
const baseConfig = require("./webpack.base"); | ||
|
||
const webpackConfig = merge(baseConfig, { | ||
// use inline sourcemap for karma-sourcemap-loader | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.scss$/, | ||
loaders: ['style-loader', 'css-loader', 'sass-loader'], | ||
}, | ||
{ | ||
test: /\.css$/, | ||
loaders: ['style-loader', 'css-loader'], | ||
}, | ||
], | ||
}, | ||
devtool: "#inline-source-map", | ||
resolveLoader: { | ||
alias: { | ||
// necessary to to make lang="scss" work in test when using vue-loader's ?inject option | ||
// see discussion at https://github.com/vuejs/vue-loader/issues/724 | ||
"scss-loader": "sass-loader" | ||
} | ||
}, | ||
plugins: [ | ||
new webpack.DefinePlugin({ | ||
"process.env.NODE_ENV": '"testing"' | ||
}) | ||
] | ||
}); | ||
|
||
// no need for app entry during tests | ||
delete webpackConfig.entry; | ||
|
||
module.exports = webpackConfig; |
Oops, something went wrong.