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`
|
`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,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user