update js hint
This commit is contained in:
parent
7cc6c7f396
commit
ca58829d4f
@ -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,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user