diff --git a/JavaScript/README.md b/JavaScript/README.md index 3e92220..2afb997 100644 --- a/JavaScript/README.md +++ b/JavaScript/README.md @@ -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, },