forked from microsoft/FluidFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.test.js
More file actions
30 lines (28 loc) · 748 Bytes
/
Copy pathwebpack.test.js
File metadata and controls
30 lines (28 loc) · 748 Bytes
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
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
module.exports = env => {
const config = require("./webpack.config")(env);
return {
...config,
entry: {
app: "./tests/index.ts"
},
mode: "development",
devtool: "inline-source-map",
devServer: {
static: {
directory: path.join(__dirname, 'tests')
}
},
plugins: [
config.plugins[0],
new HtmlWebpackPlugin({
template: "./tests/index.html",
}),
],
}
};