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` `packages.json`
```json ```json
"scripts": { "scripts": {
"start": "webpack serve", "serve": "webpack serve",
"build": "webpack --mode=production" "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": { "devDependencies": {
"webpack": "^5.42.0", "webpack": "^5.42.0",
@ -22,13 +24,13 @@ const path = require('path');
module.exports = { module.exports = {
mode: 'development', mode: 'development',
entry: './js/index.js', entry: './src/index.js',
output: { output: {
path: path.resolve(__dirname, 'app'), path: path.resolve(__dirname, 'dist'),
filename: 'engine.js', filename: 'engine.js',
}, },
devServer: { devServer: {
contentBase: path.join(__dirname, 'app'), contentBase: path.join(__dirname, 'src'),
compress: false, compress: false,
port: 55555, port: 55555,
}, },