diff --git a/src/pages/404.js b/src/pages/404.js
new file mode 100644
index 0000000..7e37039
--- /dev/null
+++ b/src/pages/404.js
@@ -0,0 +1 @@
+import '../style.css';
diff --git a/src/pages/404/index.js b/src/pages/404/index.js
deleted file mode 100644
index 999e117..0000000
--- a/src/pages/404/index.js
+++ /dev/null
@@ -1 +0,0 @@
-import '../../style.css';
diff --git a/src/pages/404/template.html b/src/pages/404/template.html
deleted file mode 100644
index 1a63abe..0000000
--- a/src/pages/404/template.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
- Regexper - 404
-
-
- 404
-
-
diff --git a/src/pages/index/index.js b/src/pages/index.js
similarity index 55%
rename from src/pages/index/index.js
rename to src/pages/index.js
index e05de35..f758959 100644
--- a/src/pages/index/index.js
+++ b/src/pages/index.js
@@ -1,9 +1,9 @@
import React from 'react';
import ReactDOM from 'react-dom';
-import App from '../../componets/App';
+import App from '../componets/App';
-import '../../style.css';
-import '../../service-worker';
+import '../style.css';
+import '../service-worker';
ReactDOM.render(, document.getElementById('root'));
diff --git a/src/pages/index/template.html b/src/template.html
similarity index 100%
rename from src/pages/index/template.html
rename to src/template.html
diff --git a/webpack.common.js b/webpack.common.js
index 666f579..3deb056 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -10,8 +10,8 @@ const pkg = require('./package.json');
const pages = fs.readdirSync(path.resolve(__dirname, 'src/pages'));
const pagePlugins = pages.map(name => new HtmlPlugin({
- template: `./src/pages/${ name }/template.html`,
- filename: `${ name }.html`,
+ template: './src/template.html',
+ filename: name.replace(/\.js$/, '.html'),
chunks: ['common', name],
minify: {
removeComments: true,