Final version template of webpack to build a web page
Template to create web page with Webpack's environment and dotenv-webpack library to global variables.
- Install libraries
npm install
- Run project
npm start
- Build project
npm run build
- Optionals
- 4.1. Create files: .env.development.local and .env.production.local to global variables
├── build # code for production
├── config-webpack # setup of webpack
│ ├── webpack.dev.js # setup only for dev
│ └── webpack.prod.js # setup only for prod
├── docs # screenshots of updatings
├── node_modules # libraries after of installing with npm install
├── files-to-build # files to copy in build folder, e.g: manifest.json
├── src # code for development
│ ├── img # folder to images
│ │ └── favicon # folder to favicon’s
│ ├── js # only files javascript
│ │ └── main.js # javascript file root
│ ├── styles # only files css
│ │ ├── main.css # css
│ │ └── normalize.css # css to normalize the styles of web page
│ └── index.html # html file root
├── .env.development.local # development global variables
├── .env.production.local # production global variables
├── .gitignore # ignore files
├── babel.config.json # setup of library babel
├── LICENSE # License MIT
├── manifest.json # info about the web page
├── package.json # file setup of profect
├── postcss.config.js # setup of library postcss
└── README.md # info of project
Each six months it tries to update all project with npm-check-updates library.
- Info about browserlist:
https://github.com/browserslist/browserslist#browsers-data-updating
- Global variables manages with dotenv-webpack