Webpack 5 + Vue 3 + Less + JEST + PostCSS
- Clone repository:
- HTTPS:
git clone https://github.com/osipovsergey/default_template.git name_your_folder - SSH:
git clone git@github.com:osipovsergey/default_template.git name_your_folder
- HTTPS:
- Go to project folder:
cd name_your_folder
- Install npm-packages:
npm i
- Dev mode:
npm run dev
PORT: 8080
- Production mode
npm run build
Framework "JEST" is used to test .vue and .js, .json files.
- Run test:
- NPM:
npm run test
- NPM:
- Test generate coverage reports in "coverage" folder.
- mixins.less -- main file for import file with mixins;
- colors.less -- mixins for colors
- fonts.less -- mixins for fonts
- media_queries.less -- mixins for media-queries;
- Create folder stats:
mkdir stats - Generate stats file for Webpack Bundle Analyzer:
npm run genstats - Watch stats bundles:
npm run watchstats
or
When building a project: npm run build and automatically open page with stats.
This project is open source.
Feedback and suggestions write to the issue.
P.S. This repository helped me in setting up the webpack. Thanks!