Уборка
This commit is contained in:
parent
e8bfc0ae79
commit
3f51cd79d9
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,5 +1,3 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
app/dist
|
||||||
dist/
|
|
||||||
game.js
|
|
||||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@ -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>
|
@ -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',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user