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
|
var path = require('path')
module.exports = function (env) {
let currentTest = path.resolve(__dirname, env)
return {
mode: 'development',
devtool: 'eval-source-map',
devServer: {
contentBase: [ currentTest, __dirname ],
},
devServer: {
contentBase: [currentTest, '..'],
},
entry: {
app: path.resolve(currentTest, "main.js"),
},
output: {
path: currentTest,
filename: 'bundle.js',
},
resolve: {
modules: [
path.resolve(__dirname, "node_modules"),
"node_modules"
]
}
}
}
|