Skip to content

Commit 719c717

Browse files
committed
reverted index.html
Signed-off-by: YASHMAHAKAL <yvsst01@gmail.com>
1 parent 517fd0a commit 719c717

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
<div id="app-root">
1010
</div>
1111
</body>
12+
<script src="/bundle.js"></script>
1213
</html>
1314

webpack.config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const path = require('path');
22
const webpack = require('webpack');
3-
const HtmlWebpackPlugin = require('html-webpack-plugin');
43

54
module.exports = {
65
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
@@ -14,6 +13,7 @@ module.exports = {
1413
},
1514
devtool: 'source-map',
1615
devServer: {
16+
static: { directory: path.resolve(__dirname) },
1717
allowedHosts: 'all',
1818
host: 'localhost',
1919
hot: true,
@@ -33,10 +33,6 @@ module.exports = {
3333
],
3434
},
3535
plugins: [
36-
new HtmlWebpackPlugin({
37-
template: './index.html',
38-
inject: true,
39-
}),
4036
new webpack.DefinePlugin({
4137
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'development'),
4238
}),

0 commit comments

Comments
 (0)