Уборка

This commit is contained in:
Alexander Popov 2021-07-04 19:56:18 +03:00
parent e8bfc0ae79
commit 3f51cd79d9
10 changed files with 4 additions and 6 deletions

4
.gitignore vendored
View File

@ -1,5 +1,3 @@
node_modules/
package-lock.json
dist/
game.js
app/dist

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -10,6 +10,6 @@
<canvas id="game" width="400" height="600"></canvas>
</div>
<script type="text/javascript" src="game.js"></script>
<script type="text/javascript" src="dist/game.js"></script>
</body>
</html>

View File

@ -2,10 +2,10 @@ const path = require('path');
module.exports = {
entry: './js/index.js',
context: path.resolve(__dirname, 'app'),
mode: 'development',
output: {
// libraryExport: 'default',
path: path.resolve(__dirname, '.'),
path: path.resolve(__dirname, 'app/dist'),
filename: 'game.js',
},
};