Skip to content

Commit

Permalink
Update readme, add serve tasks, name chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelloz committed Apr 11, 2024
1 parent 7d9bd8d commit 1650954
Show file tree
Hide file tree
Showing 7 changed files with 309 additions and 44 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
## 11 April 2024

- Add `serve:*` npm tasks
- Add chunk file names to `html-bundler-webpack-plugin` config
- Update readme to not mention css extraction plugin anymore, as it is not used

## 10 April 2024

- Added sourceMaps (dev, prod)
- Added non-delayed example of prefetched file
- Changed `console.log` copy
- Small cleanup in webpack config

* `html-bundler-webpack-plugin`
- `html-bundler-webpack-plugin`
- Always inline entry points (JS and CSS)
- No longer emits inlined files
- Improved readme to explain current behavior and how to customize it
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Having this boilerplate ready to run on your machine is as easy as typing:
## Webpack setup includes

- JS and CSS transpilation and minification done by ESBuild (meaning: its FAST)
- CSS extraction using `mini-css-extract-plugin`
- HTML generation using `html-bundler-webpack-plugin`
- SourceMaps:
- In `development` mode: they are inlined to provide you the best development experience
Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@
"scripts": {
"start": "webpack-dev-server",
"build": "cross-env NODE_ENV=production webpack",
"build:dev": "cross-env NODE_ENV=development webpack-cli"
"build:dev": "cross-env NODE_ENV=development webpack-cli",
"serve": "serve -p 8888 dist",
"serve:dev": "pnpm build:dev && pnpm serve",
"serve:prod": "pnpm build && pnpm serve"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.7",
"autoprefixer": "^10.4.19",
"cross-env": "^7.0.3",
"css-loader": "^7.0.0",
"css-loader": "^7.1.1",
"esbuild-loader": "^4.1.0",
"html-bundler-webpack-plugin": "^3.8.0",
"html-bundler-webpack-plugin": "^3.9.1",
"postcss": "^8.4.38",
"postcss-import": "^16.1.0",
"postcss-loader": "^8.1.1",
"serve": "^14.2.1",
"tailwindcss": "^3.4.3",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
Expand Down
Loading

0 comments on commit 1650954

Please sign in to comment.