- Webpack 5
- Server - HR enabled
- JS
- ES6
- Babel
- ESLint
- EJS Templating Engine
- Prettier
- Image optimisation
- Responsive images with automatic srcSet
- Partials
- Autoprefixer
- Critical CSS
- Sass
- Tailwind Css
- Clone the repo
- Install all dependencies using
npm
npm i
- Launch the server and have a play around
npm run start
npm run start
- Want to check the production build? the server and have a play around
npm run build
npm run build
Not an extensive list at all.....
Plugin | Link |
---|---|
@babel/core | [https://babel.dev/docs/en/babel-core] |
Autoprefixer | [https://github.com/postcss/autoprefixer#readme] |
ESLint | [https://eslint.org/] |
Postcss | [https://postcss.org/] |
Responsive loader | [https://github.com/dazuaz/responsive-loader] |
- Edit the
configuration/environment.js
if you want to specify:server
: configure development server, specifyhost
,port
. Refer to the full development server configuration options forwebpack-dev-server
.limits
: configure file size thresholds for assets optimizations.- Image/Font files size in bytes. Below this value the image file will be served as Data URL (inline base64).
paths
:src
ordist
directories names and file system location.
You can additionally configure webpack
for specific environment:
development
-configuration/webpack.dev.config.js
production
-configuration/webpack.prod.config.js
- Note that if you prefer to build and deploy
sourcemap
files:
- Note that if you prefer to build and deploy
You should configure your server to disallow access to the Source Map file for normal users!
MIT
Free Software, Hell Yeah! 🤯
Want to contribute? Great!
Get in touch here on Github.
- Huge thanks to https://github.com/WeAreAthlon for inspiring this work.
- Please if you like and find my efforts useful do star this repo. It means a lot to me.