forked from simphony/simphony-remote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpackfile-test.js
53 lines (45 loc) · 1.15 KB
/
webpackfile-test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
var path = require("path");
var tests = path.resolve(__dirname, "frontend/tests");
var js = path.resolve(__dirname, "frontend");
module.exports = {
entry: {
testsuite: path.resolve(tests, "testsuite.js")
},
output: {
path: path.resolve(tests, "dist"),
filename: "[name].js"
},
resolve: {
extensions: ["*", ".js", ".vue"],
alias: {
jquery: "admin-lte/plugins/jQuery/jquery-2.2.3.min",
vue: "vue/dist/vue",
"vue-router": "vue-router/dist/vue-router",
"user-resources": path.resolve(tests, "tests/user/mock_jsapi"),
gamodule: path.resolve(js, "gamodule"),
urlutils: path.resolve(js, "urlutils"),
utils: path.resolve(js, "utils"),
toolkit: path.resolve(js, "toolkit/toolkit"),
helpers: path.resolve(tests, "helpers"),
admin: path.resolve(js, "admin"),
user: path.resolve(js, "user"),
}
},
module: {
rules: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader'
}
},
{
test: /\.vue$/,
use: {
loader: 'vue-loader'
}
}
]
}
};