blob: c0e7233e07ea15cb40f2ab4823eebfd5e26ee322 (
plain)
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
|
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']
}
}
}
|