Skip to content

Commit 926a1e2

Browse files
committed
refactor(index): js to jsx and skip ejs for now
1 parent f5b751f commit 926a1e2

File tree

5 files changed

+14
-18
lines changed

5 files changed

+14
-18
lines changed

src/index.ejs

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
5+
<meta charset="utf-8"/>
6+
<title>Deezer React</title>
7+
</head>
8+
<body>
9+
<div id="app"></div>
10+
</body>
11+
</html>
File renamed without changes.

webpack.config.dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313
'./src/webpack-public-path',
1414
'react-hot-loader/patch',
1515
'webpack-hot-middleware/client?reload=true',
16-
path.resolve(__dirname, 'src/index.js'), // Defining path seems necessary for this to work consistently on Windows machines.
16+
path.resolve(__dirname, 'src/index'), // Defining path seems necessary for this to work consistently on Windows machines.
1717
],
1818
target: 'web',
1919
output: {
@@ -29,7 +29,7 @@ export default {
2929
new webpack.HotModuleReplacementPlugin(),
3030
new webpack.NoEmitOnErrorsPlugin(),
3131
new HtmlWebpackPlugin({ // Create HTML file that includes references to bundled CSS and JS.
32-
template: 'src/index.ejs',
32+
template: 'src/index.html',
3333
minify: {
3434
removeComments: true,
3535
collapseWhitespace: true,

webpack.config.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default {
3636

3737
// Generate HTML file that contains references to generated bundles. See here for how this works: https://github.com/ampedandwired/html-webpack-plugin#basic-usage
3838
new HtmlWebpackPlugin({
39-
template: 'src/index.ejs',
39+
template: 'src/index.html',
4040
// favicon: 'src/favicon.ico',
4141
minify: {
4242
removeComments: true,

0 commit comments

Comments
 (0)