Уборка

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/ node_modules/
package-lock.json package-lock.json
app/dist
dist/
game.js

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> <canvas id="game" width="400" height="600"></canvas>
</div> </div>
<script type="text/javascript" src="game.js"></script> <script type="text/javascript" src="dist/game.js"></script>
</body> </body>
</html> </html>

View File

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