|
@@ -1,6 +1,7 @@
|
1
|
1
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
2
|
2
|
|
3
|
3
|
const path = require('path');
|
|
4
|
+const rootPath = process.cwd();
|
4
|
5
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
5
|
6
|
|
6
|
7
|
module.exports = {
|
|
@@ -8,7 +9,6 @@ module.exports = {
|
8
|
9
|
entry: './example/main.ts',
|
9
|
10
|
devtool: 'inline-source-map',
|
10
|
11
|
devServer: {
|
11
|
|
- contentBase: './dist',
|
12
|
12
|
compress: true,
|
13
|
13
|
hot: true,
|
14
|
14
|
},
|
|
@@ -19,7 +19,7 @@ module.exports = {
|
19
|
19
|
],
|
20
|
20
|
output: {
|
21
|
21
|
filename: '[name].bundle.js',
|
22
|
|
- path: path.resolve(__dirname, 'dist'),
|
|
22
|
+ path: path.resolve(rootPath, 'dist'),
|
23
|
23
|
},
|
24
|
24
|
resolve: { extensions: ['.js', '.jsx', '.tsx', '.ts', '.json'] },
|
25
|
25
|
module: {
|