update js hint

This commit is contained in:
Alexander Popov 2021-08-09 22:30:45 +03:00
parent 7cc6c7f396
commit ca58829d4f
Signed by: iiiypuk
GPG Key ID: 398FC73478D97286

View File

@ -7,8 +7,10 @@ canvas { image-rendering: crisp-edges; image-rendering: pixelated; }
`packages.json`
```json
"scripts": {
"start": "webpack serve",
"build": "webpack --mode=production"
"serve": "webpack serve",
"html": "html-minifier --collapse-whitespace --remove-comments src/index.html --output dist/index.html",
"css": "csso src/styles.css --output dist/styles.css",
"build": "npm run html && npm run css && webpack --mode=production"
},
"devDependencies": {
"webpack": "^5.42.0",
@ -22,13 +24,13 @@ const path = require('path');
module.exports = {
mode: 'development',
entry: './js/index.js',
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'app'),
path: path.resolve(__dirname, 'dist'),
filename: 'engine.js',
},
devServer: {
contentBase: path.join(__dirname, 'app'),
contentBase: path.join(__dirname, 'src'),
compress: false,
port: 55555,
},